mirror of
https://github.com/hanzoai/dev-desktop.git
synced 2026-11-20 01:07:23 +00:00
22 lines
698 B
TypeScript
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");
|
|
},
|
|
);
|