mirror of
https://github.com/openclaw/openclaw.git
synced 2026-09-28 05:54:09 +08:00
fix(scripts): repair Control UI proof selectors (#135897)
This commit is contained in:
@@ -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)),
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user