Skip to content

fix(e2e): select role by visible title - #895

Merged
Leeeon233 merged 1 commit into
LodyAI:mainfrom
Dante-dan:fix/507-daily-desktop-journey
Sep 23, 2026
Merged

Leeeon233 merged 1 commit into
LodyAI:mainfrom
Dante-dan:fix/507-daily-desktop-journey

Conversation

@Dante-dan

Copy link
Copy Markdown
Contributor

Related issue

Refs #507

Problem / pressure

The Desktop Daily artifacts for run 35699301315 show LODY-ROLE-001 failing on both macOS and Ubuntu because the role menu item's accessible name includes its binding subtitle. The journey looked up the item by an exact accessible name containing only the role title, so Playwright could not find it.

Summary

Select role menu items by their menuitemradio semantics and an exact visible role-title descendant. This keeps the selector specific to the requested role without assuming that the title is the item's entire accessible name.

Visual explanation

Simple change: the patch only narrows one Playwright locator; a diagram would not add useful review context.

Before / after

Before After
The locator required the menu item's whole accessible name to equal the role title. The locator finds a radio menu item containing the exact visible role title, allowing the binding subtitle in the accessible name.

Test plan

  • pnpm run e2e:check
  • oxfmt --check e2e/src/support/pages/agent-role-page.ts
  • git diff --check upstream/main...HEAD

Context handoff

Original user prompt

Show original prompt
请跟进对应的 issue: xxx , 并注意 xxxx 内容

Authorized scope completion

The user authorized the assistant to complete the issue link, scope, and cautions from the contribution evidence. For this contribution: follow #507; use the latest Desktop Daily artifacts from run 35699301315; fix the cross-platform LODY-ROLE-001 selector failure without claiming that the unrelated session-bootstrap or context-copy failures are resolved.

Shared conversation

Status: unavailable
Reason: This authoring environment does not provide a public HTTP(S) conversation URL. No private conversation content is included in this PR.

@Leeeon233

Copy link
Copy Markdown
Contributor

Thanks!

@Leeeon233
Leeeon233 merged commit d839dc9 into LodyAI:main Sep 23, 2026
6 checks passed
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