Skip to content

test(launchpad): fix Windows flake in detects CT project framework spec - #34191

Draft
cursor[bot] wants to merge 1 commit into
developfrom
cursor/circleci-pipeline-monitoring-4e44
Draft

test(launchpad): fix Windows flake in detects CT project framework spec#34191
cursor[bot] wants to merge 1 commit into
developfrom
cursor/circleci-pipeline-monitoring-4e44

Conversation

@cursor

@cursor cursor Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor
  • Closes N/A — Windows-only CI flake on develop pipeline 83359 / commit 4dfb9bb

Additional details

Pipeline 83359 for develop commit 4dfb9bb (#34126) passed ready-to-release on linux-x64 but the windows workflow failed in windows-run-launchpad-integration-tests-chrome.

Root cause: open-mode.cy.ts → "detects CT project framework" called wizard.initialize via sinon stub wrappedMethod.apply() without awaiting the async framework detection. On slower Windows runners the default 4s timeout expired before [data-testid="select-bundler"] rendered.

Fix:

  • await wizard initialization completion
  • Assert framework detection first, then bundler selector
  • Use 15s timeouts consistent with other launchpad e2e specs

Steps to test

  • Run yarn workspace @packages/launchpad cypress:run:e2e -- --spec cypress/e2e/open-mode.cy.ts
  • Verify "detects CT project framework" passes

How has the user experience changed?

No change

PR Tasks

  • Is there an associated issue with maintainer approval for PR submission? N/A — CI flake fix from develop babysitter
  • Have tests been added/updated?
  • Has a PR for user-facing changes been opened in cypress-documentation? N/A
  • Have API changes been updated in the type definitions? N/A
Open in Web View Automation 

The detects CT project framework test called wizard.initialize without
awaiting the async detection work. On slower Windows CI runners the
default 4s timeout expired before the bundler selector rendered.

Await initialize completion and wait for framework detection before
asserting on the bundler UI, with longer timeouts consistent with other
launchpad e2e specs.

Co-authored-by: Cacie Prins <cacieprins@users.noreply.github.com>
@cypress-app-bot

Copy link
Copy Markdown
Collaborator

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same flake on develop ec97bf1 (pipeline 83371)

PIN_SHA: ec97bf1ade862697a2d673738f4b02c9519fdd66
Merged PR: #34108 — fix: scroll elements into view on both axes during actionability
Pipeline: https://app.circleci.com/pipelines/gh/cypress-io/cypress/83371

Failed job

windows-run-launchpad-integration-tests-chrome (windows workflow → failing)

Root cause (same as this PR)

open-mode.cy.ts"detects CT project framework"

AssertionError: Timed out retrying after 4000ms: Expected to find element: `[data-testid="select-bundler"]`, but never found it.
at Context.eval (webpack://@packages/launchpad/./cypress/e2e/open-mode.cy.ts:174:9)

Workflow status

Workflow Status
setup-workflow ✅ success
linux-x64 ✅ success (ready-to-release ✅)
linux-arm64 ✅ success
darwin-x64 ✅ success
darwin-arm64 ✅ success
windows ❌ failing

All other platform workflows passed; only the known Windows launchpad flake blocked this pipeline.

Open in Web View Automation 

Sent by Cursor Automation: Monitor cypress/develop for regressions/flake

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants