mirror of
https://github.com/hanzoai/dev-desktop.git
synced 2026-11-22 00:14:30 +00:00
21 lines
753 B
TypeScript
21 lines
753 B
TypeScript
import { expect } from "e2e";
|
|
|
|
import { test, WEB } from "./hanzo.ts";
|
|
|
|
test(
|
|
"Browser's Search engine is read-only while a project is selected",
|
|
WEB,
|
|
async ({ hanzo, app, browser, screen }) => {
|
|
await hanzo.project("demo");
|
|
await hanzo.open("/settings/browser");
|
|
|
|
await screen.getByRole("button", "Project scope: All projects").tap();
|
|
await screen.getByRole("menuitemradio").filter({ hasText: "demo" }).tap();
|
|
await expect(screen.getByRole("button", "Project scope: demo")).toBeVisible();
|
|
await app.screenshot("project-selected");
|
|
|
|
// A project cannot override a device preference, so the control must not offer an edit.
|
|
await expect(browser.locator('[inert] [aria-label="Search engine"]')).toBeVisible();
|
|
},
|
|
);
|