File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,23 @@ test.describe('Blankslate', () => {
7373 } )
7474
7575 // Default state
76- expect ( await page . screenshot ( ) ) . toMatchSnapshot ( `Blankslate.styled-components. ${ story . title } .${ theme } .png` )
76+ expect ( await page . screenshot ( ) ) . toMatchSnapshot ( `Blankslate.${ story . title } .${ theme } .png` )
7777 } )
7878
7979 test ( 'axe @aat' , async ( { page} ) => {
80+ await visit ( page , {
81+ id : story . id ,
82+ globals : {
83+ colorScheme : theme ,
84+ featureFlags : {
85+ primer_react_css_modules : true ,
86+ } ,
87+ } ,
88+ } )
89+ await expect ( page ) . toHaveNoViolations ( )
90+ } )
91+
92+ test ( 'axe (styled-components) @aat' , async ( { page} ) => {
8093 await visit ( page , {
8194 id : story . id ,
8295 globals : {
@@ -123,7 +136,7 @@ test.describe('Blankslate', () => {
123136 width,
124137 height : 667 ,
125138 } )
126- expect ( await page . screenshot ( ) ) . toMatchSnapshot ( `Blankslate.styled-components. ${ story . title } .${ name } .png` )
139+ expect ( await page . screenshot ( ) ) . toMatchSnapshot ( `Blankslate.${ story . title } .${ name } .png` )
127140 } )
128141 }
129142 }
You can’t perform that action at this time.
0 commit comments