Files
dev-desktop/scripts/scenarios/mobile-opens-a-seeded-thread.e2e.ts

22 lines
698 B
TypeScript

import { expect } from "e2e";
import { IOS, test } from "./hanzo-mobile.ts";
test(
"The iOS app lists a seeded thread and opens its history",
IOS,
async ({ hanzo, app, screen }) => {
const project = await hanzo.project("demo");
await hanzo.thread({ project, title: "Earlier work", messages: ["first", "second"] });
await hanzo.open();
const thread = screen.getByText("Earlier work", { exact: false }).first();
await expect(thread).toBeVisible({ timeout: 120_000 });
await app.screenshot("home");
await thread.tap();
await expect(screen.getByText("second fixture turn complete", { exact: false })).toBeVisible();
await app.screenshot("thread");
},
);