mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
OH14 — format offline e2e imports
This commit is contained in:
parent
fb18bc8044
commit
35c5ffd990
2 changed files with 15 additions and 3 deletions
|
|
@ -1,4 +1,9 @@
|
|||
import { expect, reloadWhileOffline, test, waitForCampaignServiceWorker } from './fixtures/campaignE2EFixtures.js'
|
||||
import {
|
||||
expect,
|
||||
reloadWhileOffline,
|
||||
test,
|
||||
waitForCampaignServiceWorker,
|
||||
} from './fixtures/campaignE2EFixtures.js'
|
||||
|
||||
/** Offline specs intentionally hit blocked network resources — allowlist for the guard. */
|
||||
test.use({ expectedRequestFailurePaths: ['/campanha/api/ops-sync', '/favicon.ico'] })
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
import { expect, reloadWhileOffline, test, waitForCampaignServiceWorker } from './fixtures/campaignE2EFixtures.js'
|
||||
import {
|
||||
expect,
|
||||
reloadWhileOffline,
|
||||
test,
|
||||
waitForCampaignServiceWorker,
|
||||
} from './fixtures/campaignE2EFixtures.js'
|
||||
|
||||
/** Offline specs intentionally hit blocked network resources — allowlist for the guard. */
|
||||
test.use({ expectedRequestFailurePaths: ['/campanha/api/ops-sync', '/favicon.ico'] })
|
||||
|
|
@ -157,7 +162,9 @@ test.describe('OH12 municipality list Local', () => {
|
|||
timeout: 15_000,
|
||||
})
|
||||
|
||||
await expect(page.getByRole('heading', { name: 'Municípios', exact: true }).first()).toBeVisible()
|
||||
await expect(
|
||||
page.getByRole('heading', { name: 'Municípios', exact: true }).first(),
|
||||
).toBeVisible()
|
||||
await expect(
|
||||
page.getByText('Edição na lista disponível quando estiveres online.'),
|
||||
).toBeVisible()
|
||||
|
|
|
|||
Loading…
Reference in a new issue