fix(scripts): repair Control UI proof selectors (#135897)

This commit is contained in:
Vincent Koc
2026-09-03 17:45:38 +08:00
committed by GitHub
parent 670608ad26
commit efe2dda63c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ try {
const toolbar = grouped.page.locator(".sidebar-session-toolbar");
await toolbar.getByText("Sessions", { exact: true }).waitFor();
const filter = toolbar.getByRole("button", { name: "Filter & sort" });
const add = toolbar.getByRole("button", { name: "New session" });
const add = toolbar.getByRole("link", { name: "New session" });
await grouped.page.mouse.move(1_000, 850);
const toolbarOpacity = await Promise.all([
filter.evaluate((element) => Number.parseFloat(getComputedStyle(element).opacity)),
+2 -2
View File
@@ -62,8 +62,8 @@ try {
await page.goto(new URL("/dashboard", baseUrl).toString());
const widget = page.locator('[data-test-id="workboard-board-widget"]');
await widget.waitFor();
await page.getByText("Validate onboarding flow", { exact: true }).waitFor();
await page.getByText("Review accessibility audit", { exact: true }).waitFor();
await widget.getByRole("heading", { name: "Validate onboarding flow", exact: true }).waitFor();
await widget.getByRole("heading", { name: "Review accessibility audit", exact: true }).waitFor();
await page.locator(".board-session-surface--dock-hidden").waitFor();
const columnCount = await widget.locator(".workboard-column").count();
if (columnCount !== 6) {