We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8331f9a commit 1a362eaCopy full SHA for 1a362ea
examples/sites/demos/pc/app/anchor/change.spec.ts
@@ -5,7 +5,7 @@ test('change事件', async ({ page }) => {
5
await page.goto('anchor#change')
6
7
const anchor = page.locator('.tiny-anchor')
8
- const link1 = anchor.getByRole('link', { name: '演示' })
+ const link1 = anchor.getByRole('link', { name: '基本用法' })
9
const link2 = anchor.getByRole('link', { name: 'change 事件' })
10
11
const values = [] as string[]
@@ -16,6 +16,6 @@ test('change事件', async ({ page }) => {
16
})
17
await link1.click()
18
await link2.click()
19
- expect(values.length).toBe(3)
+ expect(values.length).toBe(2)
20
expect(values[0].startsWith('当前锚点')).toBeTruthy()
21
0 commit comments