Test flake: silos.e2e.ts - form scrolls to name field on already exists error

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start with test/e2e/silos.e2e.ts at the failing test around line 349 and inspect test/e2e/utils.ts, especially chooseFile and addTlsCert around lines 233 and 262. Review the linked trace for the 57-second wait and reproduce the Firefox test. Done means the test reaches the file chooser reliably and verifies the scroll-to-name-field behavior without timing out.

Written by the indexing model from the issue text.

Description

trace.zip

https://github.com/oxidecomputer/console/actions/runs/18888326325/job/53909442616

  1) [firefox] › test/e2e/silos.e2e.ts:349:1 › form scrolls to name field on already exists error ──

    Test timeout of 60000ms exceeded.

    Error: page.waitForEvent: Test timeout of 60000ms exceeded.
    =========================== logs ===========================
    waiting for event "filechooser"
    ============================================================

       at utils.ts:233

      231 |   size: 'large' | 'small' = 'large'
      232 | ) {
    > 233 |   const fileChooserPromise = page.waitForEvent('filechooser')
          |                                   ^
      234 |   await inputLocator.click({ force: true })
      235 |   const fileChooser = await fileChooserPromise
      236 |   await fileChooser.setFiles({
        at chooseFile (/Users/runner/work/console/console/test/e2e/utils.ts:233:35)
        at addTlsCert (/Users/runner/work/console/console/test/e2e/utils.ts:262:9)
        at /Users/runner/work/console/console/test/e2e/silos.e2e.ts:364:3

Watching the trace didn't show anything too interesting. When it was supposed to scroll down and hit the file upload thing wait for the file picker to pop up, it seems to have gotten stuck in the description thing for 57 seconds. It's a bit weird.

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

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.

More from oxidecomputer/console

All issues in oxidecomputer/console

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.