Skip to content

test: fix flaky 'should filter actions by text'#40804

Merged
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-trace-viewer-filter-actions
May 12, 2026
Merged

test: fix flaky 'should filter actions by text'#40804
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-trace-viewer-filter-actions

Conversation

@yury-s
Copy link
Copy Markdown
Member

@yury-s yury-s commented May 12, 2026

Summary

  • The test reads fullCount = actionTitles.count() right after the trace viewer loads, but actions render asynchronously. On slow runners (macOS 26, webkit/win) fullCount was sometimes 0, making the subsequent toBeLessThan(fullCount) impossible (Expected: < 0, Received: 1).
  • Wait for the last recorded action (Close page) to be visible before counting.

The test reads `fullCount = actionTitles.count()` immediately after the
trace viewer loads, but actions are streamed asynchronously. On slow
runners (macOS 26, webkit-windows) `fullCount` could be 0, making the
subsequent `toBeLessThan(fullCount)` impossible. Wait for the last
recorded action ('Close page') to be visible before counting.
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

3 failed
❌ [chrome] › mcp/annotate.spec.ts:57 › should capture multiple screenshots in one annotation @mcp-windows-latest-chrome
❌ [chrome] › mcp/annotate.spec.ts:110 › should abort annotation when last screenshot is removed @mcp-windows-latest-chrome
❌ [chromium] › mcp/annotate.spec.ts:251 › should start dashboard and annotate when no dashboard is running @mcp-windows-latest-chromium

7067 passed, 1068 skipped


Merge workflow run.

@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [playwright-test] › ui-mode-test-network-tab.spec.ts:198 › should pretty-print XML request body @windows-latest-node20

3 flaky ⚠️ [chromium-library] › library/video.spec.ts:719 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node20`
⚠️ [chromium-library] › library/video.spec.ts:476 › screencast › should capture static page in persistent context @smoke `@chromium-ubuntu-22.04-node22`
⚠️ [chromium-library] › library/video.spec.ts:682 › screencast › should capture full viewport on hidpi `@chromium-ubuntu-22.04-node22`

41756 passed, 850 skipped


Merge workflow run.

@yury-s yury-s merged commit ca16d01 into microsoft:main May 12, 2026
41 of 45 checks passed
@yury-s yury-s deleted the fix-trace-viewer-filter-actions branch May 12, 2026 17:54
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.

2 participants