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
@@ -11,7 +11,12 @@ import {
|
||||
expectNoHorizontalOverflow,
|
||||
test,
|
||||
} from '../support/browser'
|
||||
import { createAccount, routeToSandbox, sandboxUrl } from '../support/sandbox'
|
||||
import {
|
||||
createAccount,
|
||||
dropLateReplays,
|
||||
routeToSandbox,
|
||||
sandboxUrl,
|
||||
} from '../support/sandbox'
|
||||
import {
|
||||
literal,
|
||||
seedAnimal,
|
||||
@@ -120,10 +125,8 @@ for (const [locale, dict] of LANGUAGES) {
|
||||
test.beforeEach(async ({ context }) => {
|
||||
await routeToSandbox(context)
|
||||
})
|
||||
// A page may still be reading (a list, the relations) when its last check
|
||||
// passed: the replay of that answer is dropped with the context, not failed.
|
||||
test.afterEach(async ({ context }) => {
|
||||
await context.unrouteAll({ behavior: 'ignoreErrors' })
|
||||
await dropLateReplays(context)
|
||||
})
|
||||
|
||||
test('empty list, an « Autre » with no owner, search, species filter, edit, archive, archived filter, restore', async ({
|
||||
|
||||
Reference in new issue
Block a user