Skip to content

Commit

Permalink
test: add progress UI e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-20 committed Sep 24, 2024
1 parent 8c9ee66 commit 1ccf2aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/progress/xdesign.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { expect, test } from '@playwright/test'

test.describe('progress 组件xdesign规范', () => {
test('默认 --UI截图', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('progress#basic-usage')
const demo = page.locator('#basic-usage .pc-demo')
await expect(demo).toBeInViewport()
await expect(demo).toHaveScreenshot('basic-usage.png')
})
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1ccf2aa

Please sign in to comment.