ep_author_hover 11.0.16 → 11.0.17
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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"name": "ep_author_hover",
|
|
8
8
|
"description": "Adds author names to span titles (shows on hover), works as authors change their name. Hover includes author color and fast switching between author spans. Hat tip to Martyn York for the initial work on this.",
|
|
9
|
-
"version": "11.0.
|
|
9
|
+
"version": "11.0.17",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/ether/ep_author_hover.git"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {expect, test} from '@playwright/test';
|
|
2
|
+
import {goToNewPad} from 'ep_etherpad-lite/tests/frontend-new/helper/padHelper';
|
|
3
|
+
import {showSettings} from 'ep_etherpad-lite/tests/frontend-new/helper/settingsHelper';
|
|
4
|
+
|
|
5
|
+
test.beforeEach(async ({page}) => {
|
|
6
|
+
await goToNewPad(page);
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
test.describe('ep_author_hover', () => {
|
|
10
|
+
test('plugin is loaded and exposes itself in clientVars', async ({page}) => {
|
|
11
|
+
const enabled = await page.evaluate(
|
|
12
|
+
() => (window as any).clientVars?.plugins?.plugins?.ep_author_hover != null);
|
|
13
|
+
expect(enabled).toBe(true);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
test('settings popup exposes the author-hover toggle', async ({page}) => {
|
|
17
|
+
await showSettings(page);
|
|
18
|
+
// The plugin renders into #mySettings via the eejsBlock_mySettings
|
|
19
|
+
// hook; its checkbox is identified by id="options-author-hover".
|
|
20
|
+
await expect(page.locator('#options-author-hover')).toBeAttached();
|
|
21
|
+
await expect(page.locator('label[for="options-author-hover"]')).toBeAttached();
|
|
22
|
+
});
|
|
23
|
+
});
|