@guidepup/playwright 0.4.0 → 0.5.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 +8 -8
- package/package.json +2 -2
- package/yarn.lock +4 -4
package/README.md
CHANGED
|
@@ -36,18 +36,18 @@ test.describe("Playwright VoiceOver", () => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
// Interact with the page 🙌
|
|
39
|
-
await vo.
|
|
39
|
+
await vo.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.lastSpokenPhrase())?.startsWith("Search")) {
|
|
43
|
+
await vo.next();
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// Search for Safari 👀
|
|
47
|
-
await vo.
|
|
48
|
-
await vo.
|
|
49
|
-
await vo.
|
|
50
|
-
await Promise.all([page.waitForNavigation(), vo.
|
|
47
|
+
await vo.type("Safari");
|
|
48
|
+
await vo.press("ArrowDown");
|
|
49
|
+
await vo.press("ArrowUp");
|
|
50
|
+
await Promise.all([page.waitForNavigation(), vo.act()]);
|
|
51
51
|
expect(page.url()).toBe("https://playwright.dev/docs/browsers#webkit");
|
|
52
52
|
});
|
|
53
53
|
});
|
|
@@ -85,7 +85,7 @@ If you are using GitHub Actions, check out the dedicated [`guidepup/setup-action
|
|
|
85
85
|
|
|
86
86
|
```yaml
|
|
87
87
|
- name: Setup Environment
|
|
88
|
-
uses: guidepup/setup-action
|
|
88
|
+
uses: guidepup/setup-action@0.1.3
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
## See Also 🐶
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guidepup/playwright",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Screen-reader driver for Playwright.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepublish": "yarn build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@guidepup/guidepup": "^0.
|
|
34
|
+
"@guidepup/guidepup": "^0.12.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.12.0":
|
|
460
|
+
version "0.12.0"
|
|
461
|
+
resolved "https://registry.yarnpkg.com/@guidepup/guidepup/-/guidepup-0.12.0.tgz#59602aab356464868e7eb9e4284c0ef3796de6b9"
|
|
462
|
+
integrity sha512-bVMnLDaJoKdt+zy+g1+SOZx3Cw5DE8F1DAll+Kt9JQ2HnPgnSovmscmj1ofgeSxFXOoxjb0a90fzGhLyOeLOJQ==
|
|
463
463
|
|
|
464
464
|
"@humanwhocodes/config-array@^0.9.2":
|
|
465
465
|
version "0.9.2"
|