diff --git a/src/screenReaderTest.ts b/src/screenReaderTest.ts index c73f023..2c24abd 100644 --- a/src/screenReaderTest.ts +++ b/src/screenReaderTest.ts @@ -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 }, @@ -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 }); diff --git a/src/voiceOverTest.ts b/src/voiceOverTest.ts index cace6d2..727ba95 100644 --- a/src/voiceOverTest.ts +++ b/src/voiceOverTest.ts @@ -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 }, @@ -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 });