Skip to content

Commit a11a437

Browse files
committed
fix: update e2e-test
1 parent a8eb6ee commit a11a437

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/sites/demos/pc/app/modal/modal-fn-slots.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ test('弹窗的插槽', async ({ page }) => {
66
const content = page.locator('.tiny-modal__content')
77
const inner = page.locator('.tiny-link__inner')
88
await page.getByRole('button', { name: '打开带插槽弹窗' }).first().click()
9-
await expect(content.nth(1)).toHaveText(/使/)
10-
await expect(inner.nth(1)).toHaveText(//)
9+
await expect(content.nth(4)).toHaveText(/使/)
10+
await expect(inner.nth(2)).toHaveText(//)
1111
await page.getByRole('button', { name: '取消' }).click()
12-
await page.getByRole('button', { name: '打开带插槽弹窗' }).nth(1).click()
13-
await expect(content.nth(1)).toHaveText(/使/)
14-
await expect(inner).toHaveText(//)
1512
})

0 commit comments

Comments
 (0)