Skip to content

Fix flaky test #14668

@benmccann

Description

@benmccann

Describe the bug

We have multiple PRs right now failing with:

    1) [chromium-build] › test/cross-platform/client.test.js:924:2 › Routing › responds to <form method="GET"> submission without reload 
  
      Error: expect(received).toEqual(expected) // deep equality
  
      - Expected  - 1
      + Received  + 3
  
      - Array []
      + Array [
      +   "http://localhost:4173/_app/immutable/assets/0.DylTJ_5d.css",
      + ]
  
        937 |
        938 | 		// Filter out server-side route resolution request
      > 939 | 		expect(requests.filter((r) => !r.includes('__route.js'))).toEqual([]);
            | 		                                                          ^
        940 | 		expect(await page.textContent('h1')).toBe('updated');
        941 | 		expect(await page.textContent('h2')).toBe('form');
        942 | 		expect(await page.textContent('h3')).toBe('bar');

Reproduction

test('responds to <form method="GET"> submission without reload', async ({ page }) => {

Logs

System Info

main

Severity

annoyance

Additional Information

I think this has probably been failing since #13379

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions