ep_spellcheck 0.0.92 → 0.0.94

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.
@@ -26,6 +26,10 @@ jobs:
26
26
  with:
27
27
  repository: ether/etherpad-lite
28
28
  path: etherpad-lite
29
+ - uses: actions/setup-node@v6
30
+ name: Install Node.js
31
+ with:
32
+ node-version: 22
29
33
  - uses: pnpm/action-setup@v6
30
34
  name: Install pnpm
31
35
  with:
@@ -16,6 +16,10 @@ jobs:
16
16
  with:
17
17
  repository: ether/etherpad-lite
18
18
  path: etherpad-lite
19
+ - uses: actions/setup-node@v6
20
+ name: Install Node.js
21
+ with:
22
+ node-version: 22
19
23
  - uses: pnpm/action-setup@v6
20
24
  name: Install pnpm
21
25
  with:
@@ -0,0 +1,8 @@
1
+ {
2
+ "@metadata": {
3
+ "authors": [
4
+ "Ucukor"
5
+ ]
6
+ },
7
+ "ep_spellcheck.spellcheck": "Спраўдзіць правапіс"
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep_spellcheck",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "keywords": [
5
5
  "spell",
6
6
  "check",
@@ -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. Wait up to 5s in case it's set asynchronously after pad init.
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 () => innerFrame.locator('body').getAttribute('spellcheck'),
15
- {timeout: 5_000})
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
  });