Skip to content

Commit b591659

Browse files
committed
chore: try to fix flaky test
1 parent a7a8c69 commit b591659

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/posts/kind.spec.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ test.describe('Post kind filter', () => {
5353
await publishButton.click()
5454
await expect(page.getByRole('button', { name: 'Dépublier' })).toBeVisible({ timeout: 10000 })
5555

56-
// Create a page post via form (reload to clear state)
57-
await page.goto('/admin/posts/new?fresh=1')
58-
await page.reload()
56+
// Create a page post via form
57+
await page.goto('/admin/posts/new')
58+
await page.waitForLoadState('networkidle')
5959

6060
await page.getByRole('textbox', { name: 'Titre de l\'article' }).fill(`Test Page ${uniqueId}`)
6161
await page.getByRole('textbox', { name: 'Entête' }).fill('Une page de test')

0 commit comments

Comments
 (0)