@guidepup/playwright 0.3.0 → 0.4.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 +15 -6
- package/package.json +3 -3
- package/yarn.lock +4 -4
package/README.md
CHANGED
|
@@ -36,16 +36,18 @@ test.describe("Playwright VoiceOver", () => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// Interact with the page 🙌
|
|
39
|
-
await vo.
|
|
39
|
+
await vo.cursor.interact();
|
|
40
40
|
|
|
41
41
|
// Move across the navigation menu to the search bar using VoiceOver 🔎
|
|
42
|
-
while (!(await vo.
|
|
43
|
-
await vo.
|
|
42
|
+
while (!(await vo.caption.lastSpokenPhrase())?.startsWith("Search")) {
|
|
43
|
+
await vo.cursor.next();
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// Search for Safari 👀
|
|
47
|
-
await
|
|
48
|
-
await
|
|
47
|
+
await vo.keyboard.type("Safari");
|
|
48
|
+
await vo.keyboard.press("ArrowDown");
|
|
49
|
+
await vo.keyboard.press("ArrowUp");
|
|
50
|
+
await Promise.all([page.waitForNavigation(), vo.cursor.act()]);
|
|
49
51
|
expect(page.url()).toBe("https://playwright.dev/docs/browsers#webkit");
|
|
50
52
|
});
|
|
51
53
|
});
|
|
@@ -69,7 +71,7 @@ const config: PlaywrightTestConfig = {
|
|
|
69
71
|
export default config;
|
|
70
72
|
```
|
|
71
73
|
|
|
72
|
-
Check out the configuration this adds [
|
|
74
|
+
Check out the configuration this adds [in the voConfig.ts file](./src/voConfig.ts). 👀
|
|
73
75
|
|
|
74
76
|
## Environment Setup 🐾
|
|
75
77
|
|
|
@@ -79,6 +81,13 @@ Setup your environment for screen-read automation with [`@guidepup/setup`](https
|
|
|
79
81
|
npx @guidepup/setup
|
|
80
82
|
```
|
|
81
83
|
|
|
84
|
+
If you are using GitHub Actions, check out the dedicated [`guidepup/setup-action`](https://github.com/marketplace/actions/guidepup-setup):
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
- name: Setup Environment
|
|
88
|
+
uses: guidepup/setup-action
|
|
89
|
+
```
|
|
90
|
+
|
|
82
91
|
## See Also 🐶
|
|
83
92
|
|
|
84
93
|
Checkout the core [`@guidepup/guidepup`](https://github.com/guidepup/guidepup)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guidepup/playwright",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Screen-reader driver for Playwright.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"ci": "yarn clean && yarn lint && yarn build",
|
|
27
27
|
"clean": "rimraf lib",
|
|
28
28
|
"compile": "tsc",
|
|
29
|
-
"lint": "eslint . --ext .
|
|
29
|
+
"lint": "eslint . --ext .ts",
|
|
30
30
|
"lint:fix": "yarn lint --fix",
|
|
31
31
|
"prepublish": "yarn build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@guidepup/guidepup": "^0.
|
|
34
|
+
"@guidepup/guidepup": "^0.11.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@playwright/test": "^1.17.1",
|
package/yarn.lock
CHANGED
|
@@ -456,10 +456,10 @@
|
|
|
456
456
|
minimatch "^3.0.4"
|
|
457
457
|
strip-json-comments "^3.1.1"
|
|
458
458
|
|
|
459
|
-
"@guidepup/guidepup@^0.
|
|
460
|
-
version "0.
|
|
461
|
-
resolved "https://registry.yarnpkg.com/@guidepup/guidepup/-/guidepup-0.
|
|
462
|
-
integrity sha512-
|
|
459
|
+
"@guidepup/guidepup@^0.11.0":
|
|
460
|
+
version "0.11.0"
|
|
461
|
+
resolved "https://registry.yarnpkg.com/@guidepup/guidepup/-/guidepup-0.11.0.tgz#343bc8283a0623f35530d04738bcb9740624ac63"
|
|
462
|
+
integrity sha512-V2/vdM5h/YfcsFNT4qssbcGJM8H51S8tz1t71EDFMNapbOi57zXDlStmGWCHK1m9jMTZSHrgl2fLsMQxEIj2aQ==
|
|
463
463
|
|
|
464
464
|
"@humanwhocodes/config-array@^0.9.2":
|
|
465
465
|
version "0.9.2"
|