-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3005 from db-ui/test-guidepup-checkbox
test: adds guidepup test for checkbox
- Loading branch information
Showing
6 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
showcases/screen-reader/__snapshots__/macos/webkit/DBCheckbox-default-1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
["Required required unchecked checkbox","Required","Required - Indeterminate mixed checkbox","Required","Required required unchecked checkbox","TODO: Add a validMessage","Required","TODO: Add a validMessage","Required - Indeterminate mixed checkbox","TODO: Add a validMessage","Required","Required TODO: Add a validMessage required checked checkbox","Select this checkbox","Required","Select this checkbox","Required - Indeterminate mixed checkbox"] |
1 change: 1 addition & 0 deletions
1
showcases/screen-reader/__snapshots__/windows/chromium/DBCheckbox-default-1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
["check box, not checked, required, Required","TODO: Add a valid Message. checked","Required","TODO: Add a valid Message","Required","check box, checked, required, Required","Please check this box if you want to proceed.. not checked","Required","Please check this box if you want to proceed.","check box, half checked, Required Indeterminate"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { getTest, testDefault } from '../default'; | ||
|
||
const test = getTest(); | ||
|
||
test.describe('DBCheckbox', () => { | ||
testDefault({ | ||
test, | ||
title: 'default', | ||
description: | ||
'should tick and untick checkbox, feedback messages must appear', | ||
url: './#/03/checkbox?page=requirement', | ||
async testFn(voiceOver, nvda) { | ||
if (nvda) { | ||
await nvda?.next(); // Focus checkbox 2 | ||
await nvda?.act(); // Tick checkbox 2 | ||
await nvda?.next(); // Focus checkbox 2 label | ||
await nvda?.next(); // Focus checkbox 2 message | ||
await nvda?.previous(); // Focus checkbox 2 label | ||
await nvda?.previous(); // Focus checkbox 2 | ||
await nvda?.act(); // Tick checkbox 2 | ||
await nvda?.next(); // Focus checkbox 2 label | ||
await nvda?.next(); // Focus checkbox 2 message | ||
await nvda?.next(); // Focus checkbox 3 | ||
} else if (voiceOver) { | ||
await voiceOver?.next(); // Focus checkbox 1 | ||
await voiceOver?.next(); // Focus checkbox 1 label | ||
await voiceOver?.clearSpokenPhraseLog(); | ||
|
||
await voiceOver?.next(); // Focus checkbox 2 | ||
await voiceOver?.next(); // Focus checkbox 2 label | ||
await voiceOver?.next(); // Focus checkbox 3 | ||
await voiceOver?.previous(); // Focus checkbox 2 label | ||
await voiceOver?.previous(); // Focus checkbox 2 | ||
await voiceOver?.act(); // Tick checkbox 2 | ||
await voiceOver?.next(); // Focus checkbox 2 label | ||
await voiceOver?.next(); // Focus checkbox 2 message | ||
await voiceOver?.next(); // Focus checkbox 3 | ||
await voiceOver?.previous(); // Focus checkbox 2 message | ||
await voiceOver?.previous(); // Focus checkbox 2 label | ||
await voiceOver?.previous(); // Focus checkbox 2 | ||
await voiceOver?.act(); // Tick checkbox 2 | ||
await voiceOver?.next(); // Focus checkbox 2 label | ||
await voiceOver?.next(); // Focus checkbox 2 message | ||
await voiceOver?.next(); // Focus checkbox 3 | ||
} | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters