Increase timeout when checking marketplace

This commit is contained in:
Arnaud 2024-11-20 15:26:37 +01:00
parent 155615da2c
commit f62ad9185b
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -24,7 +24,7 @@ test.describe('onboarding', () => {
await expect(page.locator(".health-checks ul li").nth(2).getByTestId("icon-success")).toBeVisible()
// Marketplace
await expect(page.locator(".health-checks ul li").nth(3).getByTestId("icon-warning")).toBeVisible()
await expect(page.locator(".health-checks ul li").nth(3).getByTestId("icon-warning")).toBeVisible({ timeout: 10_000 })
await expect(page.locator(".health-checks ul li").nth(3).getByTestId("icon-success")).not.toBeVisible()
// Can be simulated with File -> Work offline
@ -37,7 +37,7 @@ test.describe('onboarding', () => {
}
});
test.beforeEach(async ({ page }) => {
test.beforeEach(async ({ page }, testInfo) => {
await page.context().setOffline(false)
});
})