mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
test(e2e): align release harness coverage
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user