oxidecomputer / oxidecomputer/console

Test flake: firefox instance create

Open
#2,692 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
228
Forks
22
Avg merge
19h 42m
Merged PRs (30d)
32

Description

https://github.com/oxidecomputer/console/actions/runs/13311639509/job/37175446887

Refreshingly, I was actually able to repro the failure locally with

e2e --project=firefox instance-create -g 'changing tabs' --repeat-each 10

2 of the 10 runs failed.

  1) [firefox] › test/e2e/instance-create.e2e.ts:388:1 › maintains selected values even when changing tabs 

    Test timeout of 120000ms exceeded.

    Error: locator.click: Test timeout of 120000ms exceeded.
    Call log:
      - waiting for getByRole('option', { name: 'arch-2022-06-01' })
        - locator resolved to <div role="option" tabindex="-1" data-focus="" data-active="" aria-selected="false" data-headlessui-state="active focus" id="headlessui-combobox-option-:r55:" class="relative border-b border-secondary last:border-0">…</div>
      - attempting click action
        2 × waiting for element to be visible, enabled and stable
          - element is visible, enabled and stable
          - scrolling into view if needed
          - done scrolling
          - <div class="flex h-20 items-center gutter">…</div> from <div id="root">…</div> subtree intercepts pointer events
        - retrying click action
        - waiting 20ms
        2 × waiting for element to be visible, enabled and stable
          - element is visible, enabled and stable
          - scrolling into view if needed
          - done scrolling
          - <div class="flex h-20 items-center gutter">…</div> from <div id="root">…</div> subtree intercepts pointer events
        - retrying click action
          - waiting 100ms
        178 × waiting for element to be visible, enabled and stable
            - element is visible, enabled and stable
            - scrolling into view if needed
            - done scrolling
            - <div class="flex h-20 items-center gutter">…</div> from <div id="root">…</div> subtree intercepts pointer events
          - retrying click action
            - waiting 500ms


      395 |   await imageSelectCombobox.fill('arch')
      396 |   // select the image
    > 397 |   await page.getByRole('option', { name: arch }).click()
          |                                                  ^
      398 |   // expect to find name of the image on page
      399 |   await expect(imageSelectCombobox).toHaveValue(arch)
      400 |   // change to a different tab
        at /Users/runner/work/console/console/test/e2e/instance-create.e2e.ts:397:50

The trace suggests it's something to do with failing to scroll all the way into view.

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with e2e --project=firefox instance-create -g 'changing tabs' --repeat-each 10, then inspect test/e2e/instance-create.e2e.ts around line 397 and the linked trace. Focus on the image option click while changing tabs; done means the test no longer flakes across repeated Firefox runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, typescript
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.