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 a8eb6ee commit a11a437Copy full SHA for a11a437
examples/sites/demos/pc/app/modal/modal-fn-slots.spec.ts
@@ -6,10 +6,7 @@ test('弹窗的插槽', async ({ page }) => {
6
const content = page.locator('.tiny-modal__content')
7
const inner = page.locator('.tiny-link__inner')
8
await page.getByRole('button', { name: '打开带插槽弹窗' }).first().click()
9
- await expect(content.nth(1)).toHaveText(/使用默认插槽/)
10
- await expect(inner.nth(1)).toHaveText(/记录最近事项/)
+ await expect(content.nth(4)).toHaveText(/使用默认插槽/)
+ await expect(inner.nth(2)).toHaveText(/记录最近事项/)
11
await page.getByRole('button', { name: '取消' }).click()
12
- await page.getByRole('button', { name: '打开带插槽弹窗' }).nth(1).click()
13
14
- await expect(inner).toHaveText(/记录最近事项/)
15
})
0 commit comments