Skip to content

Commit

Permalink
test: adds guidepup test for brand
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-sch committed Aug 7, 2024
1 parent b0d99a4 commit 944b9d5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["(Default) With Logo","No Logo","logo image","Custom Logo"]
3 changes: 2 additions & 1 deletion showcases/screen-reader/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const cleanSpeakInstructions = (phraseLog: string[]): string[] =>
sPhrase.includes('To click') ||
sPhrase.includes('To select') ||
sPhrase.includes('To interact') ||
sPhrase.includes('Press Control')
sPhrase.includes('Press Control') ||
sPhrase.includes('To begin interacting')
)
)
.join('. ')
Expand Down
23 changes: 23 additions & 0 deletions showcases/screen-reader/tests/brand.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { getTest, testDefault } from '../default';

const test = getTest();

test.describe('DBBrand', () => {
testDefault({
test,
title: 'should have inline texts, no icons, but the custom logo as image (next())',
url: './#/04/brand?page=variants',
async testFn(voiceOver, nvda) {
if (nvda) {
await nvda?.next();
}

const screenReader = voiceOver ?? nvda;
await screenReader?.clearSpokenPhraseLog();
await screenReader?.previous(); // Label 1
await screenReader?.next(); // Label 2
await screenReader?.next(); // Logo image
await screenReader?.next(); // Label 3
}
});
});

0 comments on commit 944b9d5

Please sign in to comment.