diff --git a/examples/sites/demos/pc/app/tag/delete.spec.ts b/examples/sites/demos/pc/app/tag/delete.spec.ts index 10e39c058..6bbbaec70 100644 --- a/examples/sites/demos/pc/app/tag/delete.spec.ts +++ b/examples/sites/demos/pc/app/tag/delete.spec.ts @@ -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() })