test(app): every shell suite drops late replays after a test
The client journey could fail after it passed: since V1-1.6 the client page reloads its animals after a restore, and that replay outlived the test. One support helper unroutes without waiting, for the three shell specs. Found by the V1-1.6 verifier. Memory: BDR-079, LRN-087 to 089.
This commit is contained in:
1 parent
212392263c
commit
10413478fb
8 files changed
+74
-9
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
} from '../support/browser'
|
||||
import {
|
||||
createAccount,
|
||||
dropLateReplays,
|
||||
routeToSandbox,
|
||||
sandboxUrl,
|
||||
workspaceOf,
|
||||
@@ -75,6 +76,9 @@ for (const [locale, dict] of LANGUAGES) {
|
||||
test.beforeEach(async ({ context }) => {
|
||||
await routeToSandbox(context)
|
||||
})
|
||||
test.afterEach(async ({ context }) => {
|
||||
await dropLateReplays(context)
|
||||
})
|
||||
|
||||
test('empty list, create, find, open, edit, archive, archived filter, restore', async ({
|
||||
page,
|
||||
@@ -255,7 +259,8 @@ for (const [locale, dict] of LANGUAGES) {
|
||||
).toBeVisible()
|
||||
await expect(
|
||||
page.getByRole('link', { name: dict['clients.detail.edit'] }),
|
||||
).toBeVisible()
|
||||
).toBeVisible() // The animal section is read again for the restored client.
|
||||
await expect(page.getByText(dict['clients.animals.none'])).toBeVisible()
|
||||
})
|
||||
|
||||
test('pages of 25 with « Afficher plus », in name order', async ({
|
||||
|
||||
Reference in new issue
Block a user