@guidepup/playwright
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "@guidepup/playwright", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Screen-reader driver for Playwright.", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"compile": "tsc", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx", | ||
"lint": "eslint . --ext .ts", | ||
"lint:fix": "yarn lint --fix", | ||
@@ -35,3 +35,3 @@ "prepublish": "yarn build" | ||
"dependencies": { | ||
"@guidepup/guidepup": "^0.10.1" | ||
"@guidepup/guidepup": "^0.11.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -39,12 +39,14 @@ <h1 align="center">Guidepup Playwright</h1> | ||
// Interact with the page 🙌 | ||
await vo.commandInteractWithItem(); | ||
await vo.cursor.interact(); | ||
// Move across the navigation menu to the search bar using VoiceOver 🔎 | ||
while (!(await vo.getLastSpokenPhrase())?.startsWith("Search")) { | ||
await vo.moveNext(); | ||
while (!(await vo.caption.lastSpokenPhrase())?.startsWith("Search")) { | ||
await vo.cursor.next(); | ||
} | ||
// Search for Safari 👀 | ||
await page.keyboard.type("Safari"); | ||
await Promise.all([page.waitForNavigation(), vo.performAction()]); | ||
await vo.keyboard.type("Safari"); | ||
await vo.keyboard.press("ArrowDown"); | ||
await vo.keyboard.press("ArrowUp"); | ||
await Promise.all([page.waitForNavigation(), vo.cursor.act()]); | ||
expect(page.url()).toBe("https://playwright.dev/docs/browsers#webkit"); | ||
@@ -73,3 +75,3 @@ }); | ||
Check out the configuration this adds [here](./src/voConfig.ts). 👀 | ||
Check out the configuration this adds [in the voConfig.ts file](./src/voConfig.ts). 👀 | ||
@@ -84,2 +86,9 @@ ## Environment Setup 🐾 | ||
If you are using GitHub Actions, check out the dedicated [`guidepup/setup-action`](https://github.com/marketplace/actions/guidepup-setup): | ||
```yaml | ||
- name: Setup Environment | ||
uses: guidepup/setup-action | ||
``` | ||
## See Also 🐶 | ||
@@ -86,0 +95,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105212
100
+ Added@guidepup/guidepup@0.11.0(transitive)
- Removed@guidepup/guidepup@0.10.2(transitive)
Updated@guidepup/guidepup@^0.11.0