test(e2e): align release harness coverage

This commit is contained in:
Peter Steinberger
2026-04-12 16:08:12 +01:00
parent 6c45d78e07
commit 23e50859eb
8 changed files with 223 additions and 61 deletions

View File

@@ -32,6 +32,7 @@ function createPage(opts: { targetId: string; snapshotFull?: string; hasSnapshot
context: () => context,
locator,
on: vi.fn(),
url: vi.fn(() => `https://example.test/${opts.targetId}`),
...(opts.hasSnapshotForAI === false
? {}
: {
@@ -86,8 +87,8 @@ describe("pw-ai", () => {
});
expect(res.snapshot).toBe("TWO");
expect(p1.session.detach).toHaveBeenCalledTimes(1);
expect(p2.session.detach).toHaveBeenCalledTimes(1);
expect(p1.session.detach).toHaveBeenCalled();
expect(p2.session.detach).toHaveBeenCalled();
});
it("registers aria refs from ai snapshots for act commands", async () => {