Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(guidepup): brand #3007

Merged
merged 25 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
944b9d5
test: adds guidepup test for brand
bruno-sch Aug 7, 2024
77c0f3b
chore: update test for brand
nmerget Aug 8, 2024
f6bb9a2
chore: update snapshot
nmerget Aug 8, 2024
7ace29a
Merge branch 'main' into test-guidepup-brand
mfranzke Aug 9, 2024
2eb3a2e
refactor: prettyfication
mfranzke Aug 9, 2024
239677f
Merge branch 'main' into test-guidepup-brand
bruno-sch Aug 12, 2024
63cbe99
test: adds title to test, removes obsolete screenshot
bruno-sch Aug 12, 2024
e0071a3
refactor: updated screenshot
mfranzke Aug 12, 2024
03ef2e4
refactor: increased alternative text length
mfranzke Aug 13, 2024
5adbbde
refactor: corrected that phrase
mfranzke Aug 13, 2024
0dcffc4
Discard changes to showcases/angular-showcase/src/app/components/bran…
mfranzke Aug 13, 2024
f2452ef
Discard changes to showcases/vue-showcase/src/components/brand/Brand.vue
mfranzke Aug 13, 2024
8a58ea3
Update index.tsx
mfranzke Aug 13, 2024
3199b56
Update index.tsx
mfranzke Aug 13, 2024
bd8618b
Update index.tsx
mfranzke Aug 13, 2024
00d3618
Update index.tsx
mfranzke Aug 13, 2024
c646d4a
Update index.tsx
mfranzke Aug 13, 2024
d22f6e6
Merge branch 'main' into test-guidepup-brand
mfranzke Aug 13, 2024
9f3b579
Update index.tsx
mfranzke Aug 13, 2024
1ccb64f
Update index.tsx
mfranzke Aug 13, 2024
36cdeed
fix: prevent new line
mfranzke Aug 13, 2024
1dc45da
refactor: one last try
mfranzke Aug 13, 2024
6e757b3
Revert "refactor: one last try"
mfranzke Aug 13, 2024
c94a224
refactor: do not include a new line
mfranzke Aug 13, 2024
5c19e02
Merge branch 'main' into test-guidepup-brand
mfranzke Aug 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions showcases/screen-reader/__snapshots__/.editorconfig
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
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"]
mfranzke marked this conversation as resolved.
Show resolved Hide resolved
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"]
3 changes: 2 additions & 1 deletion showcases/screen-reader/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const standardPhrases = [
'To click',
'To select',
'To interact',
'Press Control'
'Press Control',
'To begin interacting'
];

const cleanSpeakInstructions = (phraseLog: string[]): string[] =>
Expand Down
28 changes: 28 additions & 0 deletions showcases/screen-reader/tests/brand.spec.ts
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
}
}
});
});
Loading