ep_spellcheck 0.0.92 → 0.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,11 +8,22 @@ test.beforeEach(async ({page}) => {
|
|
|
8
8
|
test.describe('ep_spellcheck', () => {
|
|
9
9
|
test('Spellcheck is on by default when not disabled', async ({page}) => {
|
|
10
10
|
// ep_spellcheck flips the spellcheck attribute on the inner editor
|
|
11
|
-
// body.
|
|
11
|
+
// body. Under Firefox the nested ace_inner iframe can be late to
|
|
12
|
+
// attach; wait for it before dereferencing, and read the attribute
|
|
13
|
+
// through the iframe element directly so a delayed body element
|
|
14
|
+
// doesn't keep us in a 90s test timeout.
|
|
15
|
+
await expect.poll(
|
|
16
|
+
async () => page.frame('ace_inner') != null,
|
|
17
|
+
{timeout: 10_000})
|
|
18
|
+
.toBe(true);
|
|
12
19
|
const innerFrame = page.frame('ace_inner')!;
|
|
13
20
|
await expect.poll(
|
|
14
|
-
async () =>
|
|
15
|
-
|
|
21
|
+
async () => {
|
|
22
|
+
const body = innerFrame.locator('body');
|
|
23
|
+
if (await body.count() === 0) return null;
|
|
24
|
+
return body.getAttribute('spellcheck');
|
|
25
|
+
},
|
|
26
|
+
{timeout: 10_000})
|
|
16
27
|
.toBe('true');
|
|
17
28
|
});
|
|
18
29
|
});
|