forked from opentiny/tiny-vue
test(tag): [tag] Fix test cases (#1450)
This commit is contained in:
parent
3dc041947a
commit
b8acae5dc8
|
@ -9,11 +9,11 @@ test('是否能阻止删除或正常删除标签', async ({ page }) => {
|
|||
const modal = page.locator('.tiny-modal__box').getByText('消息提示确认删除?确认取消')
|
||||
|
||||
await close.click()
|
||||
await modal.waitFor({ state: 'attached', timeout: 100 })
|
||||
await modal.isVisible()
|
||||
await page.getByRole('button', { name: '取消' }).click()
|
||||
await first.isVisible()
|
||||
await close.click()
|
||||
await modal.waitFor({ state: 'attached', timeout: 100 })
|
||||
await page.getByRole('button', { name: '确认' }).click()
|
||||
await modal.isVisible()
|
||||
await page.getByRole('button', { name: '确定' }).click()
|
||||
await expect(first).not.toBeVisible()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue