-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test(guidepup): popover * refactor: updated that snapshot * refactor: we need to harmonize specific words * refactor: generated new test case * refactor: prettyfication * refactor: corrected that filename * feat: added generated snapshot * refactor: renamed accordingly and removed obsolete snapshot * fix: issue with popover aria-extended * chore: update snapshots fix: issue with angular issue for popover trigger --------- Co-authored-by: Nicolas Merget <[email protected]> Co-authored-by: Nicolas Merget <[email protected]>
- Loading branch information
1 parent
82aa64b
commit 6f2482d
Showing
6 changed files
with
95 additions
and
6 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
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/DBPopover-opened-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 @@ | ||
["article","list 2 items","• Popover Custom Item 1 1 of 2","• Popover Custom Item 2 2 of 2","end of list","Functional menu pop up button","end of article","(Default) Regular menu pop up button"] |
1 change: 1 addition & 0 deletions
1
showcases/screen-reader/__snapshots__/windows/chromium/DBPopover-opened-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 @@ | ||
["(Default) Regular, menu button, expanded, sub Menu","list, with 2 items, bullet Popover Custom Item 1","bullet Popover Custom Item 2","out of list, button, Popover Custom Item 3","menu button, collapsed, sub Menu, Expressive"] |
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,33 @@ | ||
import { getTest, testDefault } from '../default'; | ||
|
||
const test = getTest(); | ||
test.describe('DBPopover', () => { | ||
testDefault({ | ||
test, | ||
title: 'opened', | ||
description: 'should open the popover', | ||
url: './#/01/popover?page=density', | ||
async testFn(voiceOver, nvda) { | ||
if (nvda) { | ||
await nvda?.act(); // Opening first popover | ||
await nvda?.press('Tab'); // Tab to button inside popover | ||
await nvda?.next(); // Navigating to default button | ||
await nvda?.clearSpokenPhraseLog(); | ||
await nvda?.act(); // Read button + opening second popover -> should jump to article | ||
await nvda?.next(); // Navigating to first item of list within popover | ||
await nvda?.next(); // Navigating to section item of list within popover | ||
await nvda?.next(); // Navigating to button within popover | ||
await nvda?.next(); // Navigating to next button | ||
} else if (voiceOver) { | ||
await voiceOver?.next(); // Opening first popover and navigating to the included "article" | ||
await voiceOver?.next(); // Navigating to list within popover | ||
await voiceOver?.next(); // Navigating to first item of list within popover | ||
await voiceOver?.next(); // Navigating to section item of list within popover | ||
await voiceOver?.next(); // Navigating to end of list within popover | ||
await voiceOver?.next(); // Navigating to button within popover | ||
await voiceOver?.next(); // Navigating to end of article | ||
await voiceOver?.next(); // Navigating to next button and open next popover | ||
} | ||
} | ||
}); | ||
}); |