-
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 #3006 from db-ui/test-guidepup-badge
Test guidepup badge
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ots__/macos/webkit/DBBadge-should-have-texts-inline-or-as-data-label-attributes-next-.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) Inline","Label","LABEL SHOULD BE SET Corner - Top - Left button","Corner - Top - Left","LABEL SHOULD BE SET Corner - Center - Left button"] |
1 change: 1 addition & 0 deletions
1
..._/windows/chromium/DBBadge-should-have-texts-inline-or-as-data-label-attributes-next-.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) Inline Label","button, LABEL SHOULD BE SET","button, Corner Top Left","Corner Top Left","button, LABEL SHOULD BE SET"] |
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,24 @@ | ||
import { getTest, testDefault } from '../default'; | ||
|
||
const test = getTest(); | ||
|
||
test.describe('DBBadge', () => { | ||
testDefault({ | ||
test, | ||
title: 'should have texts inline or as data-label attributes (next())', | ||
url: './#/06/badge?page=placement', | ||
async testFn(voiceOver, nvda) { | ||
if (nvda) { | ||
await nvda?.next(); | ||
} | ||
|
||
const screenReader = voiceOver ?? nvda; | ||
await screenReader?.clearSpokenPhraseLog(); | ||
await screenReader?.previous(); // Badge inline | ||
await screenReader?.next(); // Badge red | ||
await screenReader?.next(); // Button with badge with data-label 1 | ||
await screenReader?.next(); // Info-text | ||
await screenReader?.next(); // Button with badge with data-label 2 | ||
} | ||
}); | ||
}); |