Skip to content

Flaky test: the project row's Issue source submenu shows the stored choice and changes it #885

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:  getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ })
Expected: "true"
Received: "false"
Timeout:  5000ms

Call log:
  - Expect "toHaveAttribute" getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ }) with timeout 5000ms
  - waiting for getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ })
    14 × locator resolved to <div tabindex="-1" role="menuitemradio" aria-checked="false" data-state="unchecked" data-or

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.

Activity

  1. added
    bug
    quarantine
    on Oct 9, 2026
  2. github-actions commented on Oct 11, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38143760147 (pull request #977, commit 0a83974).

    Error: expect(locator).toHaveAttribute(expected) failed
    
    Locator:  getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ })
    Expected: "true"
    Received: "false"
    Timeout:  5000ms
    
    Call log:
      - Expect "toHaveAttribute" getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ }) with timeout 5000ms
      - waiting for getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ })
        14 × locator resolved to <div tabindex="-1" role="menuitemradio" aria-checked="false" data-state="unchecked" data-or
    
  3. github-actions commented on Oct 12, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38204305228 (pull request #966, commit e2f80cb).

    Error: expect(locator).toHaveAttribute(expected) failed
    
    Locator:  getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Local$/ })
    Expected: "true"
    Received: "false"
    Timeout:  5000ms
    
    Call log:
      - Expect "toHaveAttribute" getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Local$/ }) with timeout 5000ms
      - waiting for getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Local$/ })
        14 × locator resolved to <div tabindex="-1" role="menuitemradio" aria-checked="false" data-state="unchecked" data-orientation
    
  4. github-actions commented on Oct 12, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38224430070 (pull request #999, commit 38ec807).

    Error: expect(locator).toHaveAttribute(expected) failed
    
    Locator:  getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ })
    Expected: "true"
    Received: "false"
    Timeout:  5000ms
    
    Call log:
      - Expect "toHaveAttribute" getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ }) with timeout 5000ms
      - waiting for getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Automatic/ })
        14 × locator resolved to <div tabindex="-1" role="menuitemradio" aria-checked="false" data-state="unchecked" data-or
    
  5. github-actions commented on Oct 13, 2026

    @github-actions
    ContributorAuthor

    Flaky again on Linux: https://github.com/modakbul-gongbang/hide/actions/runs/38363613389 (pull request #1052, commit f6e6469).

    Error: expect(locator).toHaveAttribute(expected) failed
    
    Locator:  getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Local$/ })
    Expected: "true"
    Received: "false"
    Timeout:  5000ms
    
    Call log:
      - Expect "toHaveAttribute" getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Local$/ }) with timeout 5000ms
      - waiting for getByRole('menu', { name: 'Issue source' }).getByRole('menuitemradio', { name: /^Local$/ })
        14 × locator resolved to <div tabindex="-1" role="menuitemradio" aria-checked="false" data-state="unchecked" data-orientation
    
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