Skip to content

Commit 6425e59

Browse files
github-actions[bot] Regenerated snapshots
1 parent 9b74566 commit 6425e59

7 files changed

+55
-0
lines changed
-8.03 KB
Loading
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Do not modify this file directly.
3+
* This file was generated by: playwright.generate-tests.ts.
4+
* Regenerate using: npm run test:visual:generate
5+
*/
6+
import {test, expect} from '@playwright/test'
7+
8+
// eslint-disable-next-line i18n-text/no-en
9+
test.describe('Visual Comparison: Prose', () => {
10+
test('Prose / Full Width', async ({page}) => {
11+
await page.goto('http://localhost:6006/iframe.html?args=&id=components-prose-features--full-width&viewMode=story')
12+
13+
await page.waitForTimeout(500)
14+
expect(await page.screenshot()).toMatchSnapshot()
15+
})
16+
17+
// eslint-disable-next-line i18n-text/no-en
18+
test.describe('Mobile viewport test for Narrow view, full width (mobile)', () => {
19+
test.use({viewport: {width: 360, height: 800}})
20+
test('Prose / Narrow view, full width (mobile)', async ({page}) => {
21+
await page.goto(
22+
'http://localhost:6006/iframe.html?args=&id=components-prose-features--narrow-view-full-width&viewMode=story',
23+
)
24+
25+
await page.waitForTimeout(500)
26+
expect(await page.screenshot()).toMatchSnapshot()
27+
})
28+
})
29+
30+
// eslint-disable-next-line i18n-text/no-en
31+
test.describe('Tablet viewport test for Regular view, full width (tablet)', () => {
32+
test.use({viewport: {width: 834, height: 1112}})
33+
test('Prose / Regular view, full width (tablet)', async ({page}) => {
34+
await page.goto(
35+
'http://localhost:6006/iframe.html?args=&id=components-prose-features--regular-view-full-width&viewMode=story',
36+
)
37+
38+
await page.waitForTimeout(500)
39+
expect(await page.screenshot()).toMatchSnapshot()
40+
})
41+
})
42+
test('Prose / Playground', async ({page}) => {
43+
await page.goto('http://localhost:6006/iframe.html?args=&id=components-prose--playground&viewMode=story')
44+
45+
await page.waitForTimeout(500)
46+
expect(await page.screenshot()).toMatchSnapshot()
47+
})
48+
49+
test('Prose / Default', async ({page}) => {
50+
await page.goto('http://localhost:6006/iframe.html?args=&id=components-prose--default&viewMode=story')
51+
52+
await page.waitForTimeout(500)
53+
expect(await page.screenshot()).toMatchSnapshot()
54+
})
55+
})
59.7 KB
Loading
57.8 KB
Loading
49.9 KB
Loading
57.8 KB
Loading
65.8 KB
Loading

0 commit comments

Comments
 (0)