fix(vscode): Reduce E2E Test Flakiness#9161
Merged
lambrianmsft merged 3 commits intoMay 12, 2026
Merged
Conversation
Fill the convert-to-workspace wizard by label instead of positional inputs and wait for validation before advancing to review. Add diagnostics and safer Next-click fallbacks so the test fails with actionable state instead of silently mixing field values. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use the exact Create workspace footer button and a single DOM click so the review-step submit action is not confused with the Review + create stepper button or blocked by VS Code notifications. Keep the post-click assertion focused on the actual submit button state and workspace file creation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
takyyon
approved these changes
May 12, 2026
Contributor
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:
|
| Section | Status | Recommendation |
|---|---|---|
| Title | Align conventional prefix with PR body (test vs fix) |
|
| Commit Type | ✅ | No change needed |
| Risk Level | ✅ | No change needed (advised risk: low) |
| What & Why | ✅ | No change needed |
| Impact of Change | ✅ | No change needed |
| Test Plan | ✅ | No change needed |
| Contributors | Optional: add contributors if any | |
| Screenshots/Videos | Not applicable for test-only change |
Final message
The PR passes the PR-body/template checks. The change is test-only (E2E) and limited to one test file — advised risk is low, which matches the risk:low label on the PR. The only actionable suggestion is to make the PR title and the Commit Type consistent (either change the title prefix from fix(...) to test(...) or update the commit type in the PR body if you intentionally want fix). Optionally add contributors if relevant. Thank you — this looks ready to merge after you optionally adjust the title for consistency.
Last updated: Tue, 12 May 2026 18:13:18 GMT
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the VS Code workspace-conversion UI E2E test to reduce flakiness by making form-filling, readiness checks, and wizard navigation more deterministic and adding richer diagnostics when the wizard gets stuck.
Changes:
- Adds robust element-finding and input-typing helpers (exact button text matching, labeled input discovery, input value settling).
- Replaces index-based form filling with label-driven filling and adds an explicit “setup ready” wait before navigating to the review step.
- Improves “Next” navigation reliability with multiple click/focus fallbacks and enhanced diagnostics/screenshot capture on failure.
Guard follow-up label reads and container traversal in findInputByLabel so transient webview re-renders do not fail the conversion-create test with stale element errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
lambrianmsft
added a commit
to lambrianmsft/LogicAppsUX
that referenced
this pull request
May 12, 2026
…arnings - Add .squad/playbooks/chronicle-driven-improvement.md and matching prompt template .squad/prompts/chronicle-improve.md so /chronicle reindex + /chronicle improve feed into session-knowledge-curator as advisory candidate input only. - Add session-knowledge-curator source bullets for chronicle in the charter and session-knowledge-feed playbook. - Add durable learnings to .squad/knowledge/vscode-e2e-testing.md (label-driven fields, exhaustive stale-element handling, validation-gated Next/Create, exact-text button targeting, shared DOM helpers) and .squad/knowledge/review-patterns.md (scope-deferred reviewer reply pattern) sourced from PR Azure#9161. - Document the chief-engineer subagent-consultation rule and the chronicle workflow in .squad/knowledge/agent-improvements.md. - Point .squad/knowledge/README.md at the new playbook/prompt. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
lambrianmsft
added a commit
to lambrianmsft/LogicAppsUX
that referenced
this pull request
May 12, 2026
Brings the Squad chief-engineer agent system, VS Code E2E flakiness fixes (PR Azure#9161 lineage), and the chronicle-driven improvement playbook into the codeful private preview branch so we can run using the new agents. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Type
Risk Level
What & Why
Stabilizes the VS Code workspace conversion-create E2E flow that was failing in CI. The test now fills wizard inputs by label instead of index, waits for path/name validation before advancing, targets the exact Create workspace submit action, and hardens label/input lookup against transient webview re-renders with better diagnostics.
Impact of Change
None
VS Code E2E CI coverage is more stable and easier to diagnose when conversion-create navigation fails.
Test-only change; no runtime, production, workflow designer, or customer-facing VS Code extension behavior changes.
Test Plan
npx biome check --write apps\\vs-code-designer\\src\\test\\ui\\workspaceConversionCreate.test.ts;cd apps\\vs-code-designer; npx tsup --config tsup.e2e.test.config.ts;E2E_MODE=conversioncreateonly node src\\test\\ui\\run-e2e.jsContributors
Screenshots/Videos