@@ -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 = {
6971export 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
7981npx @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
8493Checkout the core [` @guidepup/guidepup`](https://github.com/guidepup/guidepup)
0 commit comments