Skip to content

Commit 251fc68

Browse files
test: fixes flaky form state test (#15128)
Fixes test flakes in the form-state suite by returning early after the route is aborted.
1 parent daf8061 commit 251fc68

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/form-state/e2e.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ test.describe('Form State', () => {
6060
})
6161

6262
test.beforeEach(async () => {
63-
// await throttleTest({ page, context, delay: 'Fast 3G' })
63+
// await throttleTest({
64+
// page,
65+
// context,
66+
// delay: 'Slow 4G',
67+
// })
6468
})
6569

6670
test('should disable fields during initialization', async () => {
@@ -237,6 +241,7 @@ test.describe('Form State', () => {
237241
await page.route(postsUrl.create, async (route) => {
238242
if (route.request().method() === 'POST' && route.request().url() === postsUrl.create) {
239243
await route.abort()
244+
return
240245
}
241246

242247
await route.continue()

0 commit comments

Comments
 (0)