mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-07 02:57:51 +00:00
test(security): tolerate cold route startup
Signed-off-by: dongmucat <1127093059@qq.com>
This commit is contained in:
parent
8964838f43
commit
22839d06c7
1 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ test.describe('Security audit redaction', () => {
|
|||
|
||||
await page.goto('/space/global/redaction-skill')
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible()
|
||||
await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible({ timeout: 15_000 })
|
||||
await expect(page.getByText('No high-risk findings', { exact: true })).toBeVisible()
|
||||
await page.getByRole('button', { name: 'View Details' }).click()
|
||||
await page.getByRole('button', { name: 'Findings' }).click()
|
||||
|
|
@ -166,7 +166,7 @@ test.describe('Security audit redaction', () => {
|
|||
|
||||
await page.goto('/space/global/redaction-skill')
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible()
|
||||
await expect(page.getByRole('heading', { name: 'Redaction Skill', exact: true }).first()).toBeVisible({ timeout: 15_000 })
|
||||
await expect(page.getByText('Security Audit', { exact: true })).toHaveCount(0)
|
||||
await expect(page.locator('body')).not.toContainText(CANARY)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue