Skip to content

Commit a5738f2

Browse files
committed
added snapshot testing for foundations/theming page
1 parent 59f1be4 commit a5738f2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

showcase/tests/acceptance/percy-test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,24 @@ module('Acceptance | Percy test', function (hooks) {
3131
await visit('/foundations/focus-ring');
3232
await percySnapshot('FocusRing');
3333

34+
await visit('/foundations/theming');
35+
await percySnapshot('Theming - Standard');
36+
await fillIn(
37+
'.shw-theme-switcher__control-select',
38+
'css-selectors--migration|default',
39+
);
40+
await percySnapshot('Theming - HDS Default');
41+
await fillIn(
42+
'.shw-theme-switcher__control-select',
43+
'css-selectors--migration|light',
44+
);
45+
await percySnapshot('Theming - CDS Light');
46+
await fillIn(
47+
'.shw-theme-switcher__control-select',
48+
'css-selectors--migration|dark',
49+
);
50+
await percySnapshot('Theming - CDS Dark');
51+
3452
// Take snapshots for English, Spanish, and None (Fallback) translations
3553
await visit('/internationalization/translation');
3654
await percySnapshot('Translation - English');

0 commit comments

Comments
 (0)