ep_markdown 11.0.17 → 11.0.18

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@v4
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@v4
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:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_markdown",
3
3
  "description": "Edit and Export as Markdown in Etherpad",
4
- "version": "11.0.17",
4
+ "version": "11.0.18",
5
5
  "author": {
6
6
  "name": "John McLear",
7
7
  "email": "john@mclear.co.uk",
@@ -15,8 +15,15 @@ test.describe('ep_markdown', () => {
15
15
  await writeToPad(page, 'bold');
16
16
  await selectAllText(page);
17
17
 
18
- // Apply bold via the toolbar button.
19
- await page.locator('.buttonicon-bold').click();
18
+ // Apply bold via the toolbar button. force:true because under
19
+ // Firefox + WITH_PLUGINS load #toolbar-overlay can intercept
20
+ // pointer events; chromium resolves the click via fallback
21
+ // hit-testing but firefox is stricter.
22
+ await page.locator('.buttonicon-bold').click({force: true});
23
+ // Wait for the bold to actually apply before flipping the
24
+ // markdown setting — otherwise the markdown class could land
25
+ // before there's anything bold to render.
26
+ await expect(padBody.locator('div').first().locator('b')).toHaveCount(1);
20
27
 
21
28
  // Toggle "Show Markdown" in pad settings.
22
29
  // Settings popup must be open for #options-markdown to be clickable.