Skip to content

Commit 2416b6a

Browse files
committed
refactor(e2e): update snapshots to point to same image
1 parent f931efa commit 2416b6a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

e2e/components/Blankslate.test.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)