Skip to content

Commit

Permalink
fix(anchor): 修正在全局字体更改后,anchor的ui截图报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxi-20 committed Oct 8, 2024
1 parent 9e4f2c5 commit 4c309c1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/anchor/xdesign.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test.describe('anchor 组件xdesign规范', () => {
test('默认--UI截图', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('anchor#basic-usage')
const demo = page.locator('#basic-usage .pc-demo')
const demo = page.locator('#basic-usage .pc-demo .tiny-anchor')
await expect(demo).toBeInViewport()
await expect(demo).toHaveScreenshot('basic-usage.png')

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 4c309c1

Please sign in to comment.