16 lines
660 B
TypeScript
16 lines
660 B
TypeScript
import { expect, gotoWorkbench, test } from "../fixtures/test";
|
|
import { selectors } from "../fixtures/selectors";
|
|
|
|
test.use({ viewport: { width: 390, height: 844 } });
|
|
|
|
test("mobile Workbench exposes a visible create session entry", async ({ page }) => {
|
|
await gotoWorkbench(page);
|
|
const create = page.locator(selectors.sessionCreate);
|
|
await expect(create).toBeVisible();
|
|
const box = await create.boundingBox();
|
|
expect(box?.width ?? 0).toBeGreaterThan(32);
|
|
expect(box?.height ?? 0).toBeGreaterThan(24);
|
|
await create.click();
|
|
await expect(page.locator('.session-tab[data-active="true"]')).toHaveAttribute("data-conversation-id", /^cnv_/u);
|
|
});
|