test(ui): scope default agent selector (#102902)

This commit is contained in:
Peter Steinberger 2026-07-09 15:39:59 +01:00 committed by GitHub
parent 428c68a3c7
commit 3e492e0146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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