-
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 #3007 from db-ui/test-guidepup-brand
test: adds guidepup test for brand
- Loading branch information
Showing
5 changed files
with
38 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# For more information about the properties used in | ||
# this file, please see the EditorConfig documentation: | ||
# https://editorconfig.org/ | ||
|
||
[*.txt] | ||
insert_final_newline = false |
1 change: 1 addition & 0 deletions
1
showcases/screen-reader/__snapshots__/macos/webkit/DBBrand-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 @@ | ||
["(Default) With Logo","No Logo","this is a fancy placeholder logo image","Custom Logo"] |
1 change: 1 addition & 0 deletions
1
showcases/screen-reader/__snapshots__/windows/chromium/DBBrand-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 @@ | ||
["(Default) With Logo No Logo","graphic, this is a fancy placeholder logo","Custom Logo"] |
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,28 @@ | ||
import { getTest, testDefault } from '../default'; | ||
|
||
const test = getTest(); | ||
|
||
test.describe('DBBrand', () => { | ||
testDefault({ | ||
test, | ||
title: 'default', | ||
description: | ||
'should have inline texts, no icons, but the custom logo as image (next())', | ||
url: './#/04/brand?page=variants', | ||
async testFn(voiceOver, nvda) { | ||
if (voiceOver) { | ||
await voiceOver?.previous(); // Label 1 | ||
await voiceOver?.next(); // Label 2 | ||
await voiceOver?.next(); // Logo image | ||
await voiceOver?.next(); // Label 3 | ||
} else if (nvda) { | ||
/* We don't have a focusable element, so we are initially on the browser (i) button */ | ||
await nvda.press('Shift+Tab'); // Jump into the website | ||
await nvda?.clearSpokenPhraseLog(); | ||
await nvda?.previous(); // Label 1 + 2 | ||
await nvda?.next(); // Logo image | ||
await nvda?.next(); // Label 3 | ||
} | ||
} | ||
}); | ||
}); |