Skip to content

Flaky test: an Agent tab gets back the View it had in front, and an agent in another tab opens its View behind the operator's #653

Closed

Description

@github-actions

CI found this test flaky: it failed, then passed on the one retry in the same job, so the run passed.

First attempt's failure:

Error: expect(locator).toHaveAttribute(expected) failed

Locator: locator('[data-view-tab-bar] [role="tab"][aria-selected="true"]')
Expected pattern: /\/b\.md/
Received string:  "File: /tmp/hide-e2e-herdr-jMKwCo/fixture/c.md"
Timeout: 5000ms

Call log:
  - Expect "toHaveAttribute" locator('[data-view-tab-bar] [role="tab"][aria-selected="true"]') with timeout 5000ms
  - waiting for locator('[data-view-tab-bar] [role="tab"][aria-selected="true"]')
    14 × locator resolved to <div role="tab" tabindex="0" data-display="d5" data-saving="false" data-state="closed" aria-selected="true" data-tab-kind

Fix the cause or delete the test by the expiry date; a flaky test is not left running. A longer timeout, more retries or a lower expectation does not end this issue. Each later flaky run adds a comment here.

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

    bugquarantine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions