14 lines
651 B
TypeScript
14 lines
651 B
TypeScript
import { test } from "node:test";
|
|
import { chromium } from "playwright-core";
|
|
import { verifyGuidanceWorkspaceUI } from "./guidance-workspace-ui";
|
|
const base = process.env.WORKSPACE_TEST_URL;
|
|
test("workspace filters, reading tabs, account states and editor work on desktop and mobile", {skip: !base}, async () => {
|
|
const browser = await chromium.launch({
|
|
executablePath: process.env.CHROMIUM_PATH || "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
|
|
headless: true,
|
|
args: ["--no-sandbox", "--disable-dev-shm-usage"],
|
|
});
|
|
try { await verifyGuidanceWorkspaceUI(base!, browser); }
|
|
finally { await browser.close(); }
|
|
});
|