test(tag): [tag] Fix test cases (#1450)

This commit is contained in:
chenxi-20 2024-03-01 16:26:53 +08:00 committed by GitHub
parent 3dc041947a
commit b8acae5dc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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()
})