Skip to content

Automated tests not stable - or... is the app not stable when interacting quickly? #43

Description

@mvanbrab

Say 20% of the time, when running the automated tests (in the loama subproject), a random number of tests fail.

In all cases, the cause is the same: the initial contents do not appear:

Error: Timed out 5000ms waiting for expect(locator).toBeVisible()

Locator: getByRole('link', { name: 'Resources', exact: true })
Expected: visible
Received: <element(s) not found>
Call log:
  - expect.toBeVisible with timeout 5000ms
  - waiting for getByRole('link', { name: 'Resources', exact: true })


   at auth.setup.ts:21

  19 |
  20 |
> 21 |     await expect(page.getByRole('link', { name: 'Resources', exact: true })).toBeVisible();
     |                                                                              ^
  22 |     await expect(page.getByRole('main')).toContainText('home');
  23 | }
  24 |
    at authSetup (/home/mavbraba/projects/solid/loama/loama/tests/auth.setup.ts:21:78)

And no, increasing the timeout does not solve this :-)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    on holdTemporarily paused

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions