Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions src/screenReaderTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const screenReaderTest = test.extend<{
// Ensure application is brought to front and focused.
await macOSActivate(applicationName);

// Cancel auto navigation.
// Cancel automatic behaviours/previous commands.
await screenReaderPlaywright.perform(
{ keyCode: MacOSKeyCodes.Control },
{ capture: false },
Expand Down Expand Up @@ -326,28 +326,6 @@ export const screenReaderTest = test.extend<{
await screenReaderPlaywright.interact({ capture: false });
await delay(100);

// Navigate to the beginning of the web content.
await screenReaderPlaywright.perform(
voiceOverKeyCodeCommands.moveToBeginningOfText,
{ capture: false },
);
await delay(100);

// Cancel auto navigation
await screenReaderPlaywright.perform(
{ keyCode: MacOSKeyCodes.Control },
{ capture: false },
);
await delay(100);

// Navigate to the Guidepup marker element at beginning of the web
// content.
await screenReaderPlaywright.perform(
voiceOverKeyCodeCommands.moveToBeginningOfText,
{ capture: false },
);
await delay(100);

// Navigate to the first element of the page using the provided
// capture settings.
await screenReaderPlaywright.next({ capture });
Expand Down
24 changes: 1 addition & 23 deletions src/voiceOverTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const voiceOverTest = test.extend<{
// Ensure application is brought to front and focused.
await macOSActivate(applicationName);

// Cancel auto navigation.
// Cancel automatic behaviours/previous commands.
await voiceOverPlaywright.perform(
{ keyCode: MacOSKeyCodes.Control },
{ capture: false },
Expand Down Expand Up @@ -161,28 +161,6 @@ export const voiceOverTest = test.extend<{
await voiceOverPlaywright.interact({ capture: false });
await delay(100);

// Navigate to the beginning of the web content.
await voiceOverPlaywright.perform(
voiceOverPlaywright.keyboardCommands.moveToBeginningOfText,
{ capture: false },
);
await delay(100);

// Cancel auto navigation
await voiceOverPlaywright.perform(
{ keyCode: MacOSKeyCodes.Control },
{ capture: false },
);
await delay(100);

// Navigate to the Guidepup marker element at beginning of the web
// content.
await voiceOverPlaywright.perform(
voiceOverPlaywright.keyboardCommands.moveToBeginningOfText,
{ capture: false },
);
await delay(100);

// Navigate to the first element of the page using the provided
// capture settings.
await voiceOverPlaywright.next({ capture });
Expand Down
Loading