@guidepup/playwright 0.19.1 → 0.20.0
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/README.md +124 -64
- package/lib/applicationIdMap.d.ts +10 -0
- package/lib/applicationIdMap.js +13 -0
- package/lib/cleanString.d.ts +1 -0
- package/lib/cleanString.js +9 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +5 -1
- package/lib/navigateNVDAtoWebContent.d.ts +8 -0
- package/lib/navigateNVDAtoWebContent.js +82 -0
- package/lib/navigateOrcaToWebContent.d.ts +7 -0
- package/lib/navigateOrcaToWebContent.js +48 -0
- package/lib/navigateVoiceOverToWebContent.d.ts +8 -0
- package/lib/navigateVoiceOverToWebContent.js +101 -0
- package/lib/nvdaTest.js +8 -88
- package/lib/orcaTest.d.ts +73 -0
- package/lib/orcaTest.js +35 -0
- package/lib/screenReaderTest.d.ts +7 -1
- package/lib/screenReaderTest.js +26 -198
- package/lib/voiceOverTest.d.ts +2 -2
- package/lib/voiceOverTest.js +13 -112
- package/lib/withGuidepup.d.ts +2 -0
- package/lib/withGuidepup.js +21 -0
- package/package.json +10 -7
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withGuidepup = void 0;
|
|
4
|
+
const screenReaderConfig_1 = require("./screenReaderConfig");
|
|
5
|
+
const withGuidepup = (config) => ({
|
|
6
|
+
...config,
|
|
7
|
+
workers: screenReaderConfig_1.screenReaderConfig.workers,
|
|
8
|
+
fullyParallel: screenReaderConfig_1.screenReaderConfig.fullyParallel,
|
|
9
|
+
use: {
|
|
10
|
+
...config.use,
|
|
11
|
+
...screenReaderConfig_1.screenReaderConfig.use,
|
|
12
|
+
},
|
|
13
|
+
projects: config.projects?.map((project) => ({
|
|
14
|
+
...project,
|
|
15
|
+
use: {
|
|
16
|
+
...project.use,
|
|
17
|
+
...screenReaderConfig_1.screenReaderConfig.use,
|
|
18
|
+
},
|
|
19
|
+
})),
|
|
20
|
+
});
|
|
21
|
+
exports.withGuidepup = withGuidepup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guidepup/playwright",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Screen reader automation library for Playwright testing. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -34,19 +34,22 @@
|
|
|
34
34
|
"prepublish": "yarn build",
|
|
35
35
|
"pretest": "npx playwright install chromium firefox webkit",
|
|
36
36
|
"test:nvda": "yarn test:nvda:chromium && yarn test:nvda:firefox",
|
|
37
|
-
"test:
|
|
37
|
+
"test:orca": "yarn test:orca:firefox",
|
|
38
|
+
"test:screenreader": "yarn test:screenreader:chromium && yarn test:screenreader:firefox",
|
|
38
39
|
"test:voiceover": "yarn test:voiceover:chromium && yarn test:voiceover:firefox && yarn test:voiceover:webkit",
|
|
39
40
|
"test:nvda:chromium": "playwright test --config ./examples/playwright-nvda/chromium.config.ts ./examples/playwright-nvda/tests/chromium/",
|
|
40
41
|
"test:nvda:firefox": "playwright test --config ./examples/playwright-nvda/firefox.config.ts ./examples/playwright-nvda/tests/firefox/",
|
|
42
|
+
"test:orca:firefox": "playwright test --config ./examples/playwright-orca/firefox.config.ts ./examples/playwright-orca/tests/firefox/",
|
|
41
43
|
"test:screenreader:chromium": "playwright test --config ./examples/playwright-screenreader/chromium.config.ts ./examples/playwright-screenreader/tests/chromium/",
|
|
44
|
+
"test:screenreader:firefox": "playwright test --config ./examples/playwright-screenreader/firefox.config.ts ./examples/playwright-screenreader/tests/firefox/",
|
|
42
45
|
"test:voiceover:chromium": "playwright test --config ./examples/playwright-voiceover/chromium.config.ts ./examples/playwright-voiceover/tests/chromium/",
|
|
43
46
|
"test:voiceover:firefox": "playwright test --config ./examples/playwright-voiceover/firefox.config.ts ./examples/playwright-voiceover/tests/firefox/",
|
|
44
47
|
"test:voiceover:webkit": "playwright test --config ./examples/playwright-voiceover/webkit.config.ts ./examples/playwright-voiceover/tests/webkit/"
|
|
45
48
|
},
|
|
46
49
|
"devDependencies": {
|
|
47
|
-
"@guidepup/guidepup": "^0.
|
|
48
|
-
"@guidepup/record": "^0.
|
|
49
|
-
"@playwright/test": "^1.
|
|
50
|
+
"@guidepup/guidepup": "^0.36.1",
|
|
51
|
+
"@guidepup/record": "^0.3.0",
|
|
52
|
+
"@playwright/test": "^1.62.1",
|
|
50
53
|
"@types/node": "^24.10.1",
|
|
51
54
|
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
|
52
55
|
"@typescript-eslint/parser": "^8.48.1",
|
|
@@ -58,8 +61,8 @@
|
|
|
58
61
|
"typescript": "^5.9.3"
|
|
59
62
|
},
|
|
60
63
|
"peerDependencies": {
|
|
61
|
-
"@guidepup/guidepup": ">=0.
|
|
62
|
-
"@playwright/test": "
|
|
64
|
+
"@guidepup/guidepup": ">=0.36.1",
|
|
65
|
+
"@playwright/test": ">=1.62.1"
|
|
63
66
|
},
|
|
64
67
|
"resolutions": {
|
|
65
68
|
"strip-ansi": "6.0.1",
|