Skip to content

Commit 04aaf56

Browse files
authored
test: add progress UI e2e test (#57)
1 parent 9d885e7 commit 04aaf56

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/progress/xdesign.spec.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { expect, test } from '@playwright/test'
2+
3+
test.describe('progress 组件xdesign规范', () => {
4+
test('默认 --UI截图', async ({ page }) => {
5+
page.on('pageerror', (exception) => expect(exception).toBeNull())
6+
await page.goto('progress#basic-usage')
7+
const demo = page.locator('#basic-usage .pc-demo')
8+
await expect(demo).toBeInViewport()
9+
await expect(demo).toHaveScreenshot('basic-usage.png')
10+
})
11+
})
Loading

0 commit comments

Comments
 (0)