Skip to content

Commit 1a362ea

Browse files
committed
fix(docs): [anchor] 修复测试用例报错
1 parent 8331f9a commit 1a362ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sites/demos/pc/app/anchor/change.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test('change事件', async ({ page }) => {
55
await page.goto('anchor#change')
66

77
const anchor = page.locator('.tiny-anchor')
8-
const link1 = anchor.getByRole('link', { name: '演示' })
8+
const link1 = anchor.getByRole('link', { name: '基本用法' })
99
const link2 = anchor.getByRole('link', { name: 'change 事件' })
1010

1111
const values = [] as string[]
@@ -16,6 +16,6 @@ test('change事件', async ({ page }) => {
1616
})
1717
await link1.click()
1818
await link2.click()
19-
expect(values.length).toBe(3)
19+
expect(values.length).toBe(2)
2020
expect(values[0].startsWith('当前锚点')).toBeTruthy()
2121
})

0 commit comments

Comments
 (0)