Skip to content
Prev Previous commit
Next Next commit
Update form-component.spec.ts
  • Loading branch information
pascalbaljet committed Aug 15, 2025
commit 1fefb3ca37e02398c6b060dc4189ac44005d33f3
7 changes: 3 additions & 4 deletions tests/form-component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1298,13 +1298,12 @@ test.describe('Form Component', () => {

// Prefetch both pages
const prefetchUser = page.waitForResponse('/prefetch/tags/1')
const prefetchProduct = page.waitForResponse('/prefetch/tags/2')

await page.getByRole('link', { name: 'User Tagged Page' }).hover()
await page.getByRole('link', { name: 'Product Tagged Page' }).hover()
await prefetchUser

const prefetchProduct = page.waitForResponse('/prefetch/tags/2')
await page.getByRole('link', { name: 'Product Tagged Page' }).hover()
await prefetchProduct
await prefetchUser

// Submit form that invalidates 'user' tag
await page.fill('#form-name', 'Test User')
Expand Down