Skip to content

test(desktop): wait for narrative fixture workbar - #4970

Open
liuxiaocs7 wants to merge 1 commit into
apache:mainfrom
liuxiaocs7:fix/4968-fixture-workbar-race
Open

test(desktop): wait for narrative fixture workbar#4970
liuxiaocs7 wants to merge 1 commit into
apache:mainfrom
liuxiaocs7:fix/4968-fixture-workbar-race

Conversation

@liuxiaocs7

@liuxiaocs7 liuxiaocs7 commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Wait for the seeded Git changes panel to become visible before the narrative fixture hands its page to tests. This closes the initialization gap where the fixture could select Review after the usage action had already selected Trace.

Fixes #4968

Verification

  • npm exec -- biome check apps/desktop/e2e/fixtures.ts
  • npm --workspace @maka/desktop run build:workspace-deps && npm --workspace @maka/desktop run typecheck
  • npm exec -w @maka/desktop -- playwright test --config e2e/playwright.config.ts e2e/session-workbar.spec.ts --grep "the composer usage action opens Task trace in the right workbar" --repeat-each=10 (10 passed)
  • git diff origin/main...HEAD --check

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: OpenAI Codex investigated the CI failure, implemented the fixture synchronization, and ran verification. The commit includes the required Generated-by: OpenAI Codex trailer.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

The narrative fixture exposed its transcript before its deferred workbar setup had selected Review. A test could open Trace in that gap and then lose selection when fixture setup completed. Wait for the seeded Git changes region before handing the page to tests.

Fixes apache#4968

Generated-by: OpenAI Codex
@github-actions github-actions Bot added the effort/S Under 100 readable lines label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/S Under 100 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop usage trace e2e races fixture initialization

1 participant