Skip to content

Commit 1c763f3

Browse files
committed
feat: bump guidepup version
1 parent 5c2a1c3 commit 1c763f3

File tree

3 files changed

+22
-13
lines changed

3 files changed

+22
-13
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,18 @@ test.describe("Playwright VoiceOver", () => {
3636
});
3737

3838
// Interact with the page 🙌
39-
await vo.commandInteractWithItem();
39+
await vo.cursor.interact();
4040

4141
// Move across the navigation menu to the search bar using VoiceOver 🔎
42-
while (!(await vo.getLastSpokenPhrase())?.startsWith("Search")) {
43-
await vo.moveNext();
42+
while (!(await vo.caption.lastSpokenPhrase())?.startsWith("Search")) {
43+
await vo.cursor.next();
4444
}
4545

4646
// Search for Safari 👀
47-
await page.keyboard.type("Safari");
48-
await Promise.all([page.waitForNavigation(), vo.performAction()]);
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()]);
4951
expect(page.url()).toBe("https://playwright.dev/docs/browsers#webkit");
5052
});
5153
});
@@ -69,7 +71,7 @@ const config: PlaywrightTestConfig = {
6971
export default config;
7072
```
7173

72-
Check out the configuration this adds [here](./src/voConfig.ts). 👀
74+
Check out the configuration this adds [in the voConfig.ts file](./src/voConfig.ts). 👀
7375

7476
## Environment Setup 🐾
7577

@@ -79,6 +81,13 @@ Setup your environment for screen-read automation with [`@guidepup/setup`](https
7981
npx @guidepup/setup
8082
```
8183

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+
8291
## See Also 🐶
8392
8493
Checkout the core [`@guidepup/guidepup`](https://github.com/guidepup/guidepup)

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@guidepup/playwright",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Screen-reader driver for Playwright.",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -26,12 +26,12 @@
2626
"ci": "yarn clean && yarn lint && yarn build",
2727
"clean": "rimraf lib",
2828
"compile": "tsc",
29-
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
29+
"lint": "eslint . --ext .ts",
3030
"lint:fix": "yarn lint --fix",
3131
"prepublish": "yarn build"
3232
},
3333
"dependencies": {
34-
"@guidepup/guidepup": "^0.10.1"
34+
"@guidepup/guidepup": "^0.11.0"
3535
},
3636
"devDependencies": {
3737
"@playwright/test": "^1.17.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,10 @@
456456
minimatch "^3.0.4"
457457
strip-json-comments "^3.1.1"
458458

459-
"@guidepup/guidepup@^0.10.1":
460-
version "0.10.1"
461-
resolved "https://registry.yarnpkg.com/@guidepup/guidepup/-/guidepup-0.10.1.tgz#18470bdb6a85478f1366c462e0ba279470e61b53"
462-
integrity sha512-BKfIs+9NSa20/4Ev3vqucWRDUNNXOJ2RuZy4/n3pHkQPQrVe5CWq7XPAXOMu8MUG/I8kMc2gDZIVsRQArTvdTQ==
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==
463463

464464
"@humanwhocodes/config-array@^0.9.2":
465465
version "0.9.2"

0 commit comments

Comments
 (0)