mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-10 00:11:19 +00:00
test(ui): scope default agent selector (#102902)
This commit is contained in:
parent
428c68a3c7
commit
3e492e0146
1 changed files with 4 additions and 1 deletions
|
|
@ -90,7 +90,10 @@ describeControlUiE2e("Control UI agents Set Default mocked Gateway E2E", () => {
|
|||
// these implicitly assert the dropdown loaded and Set Default is clickable for a
|
||||
// non-default agent.
|
||||
await page.locator(".agent-select__trigger").click();
|
||||
await page.getByRole("option", { name: "Kimi agent" }).click();
|
||||
await page
|
||||
.getByRole("listbox", { name: "Select an agent" })
|
||||
.getByRole("option", { name: "Kimi agent", exact: true })
|
||||
.click();
|
||||
await page.getByRole("button", { name: "Set Default", exact: true }).click();
|
||||
|
||||
// The fix routes Set Default through the canonical save path; without it the click
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue