mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: clear diffs browser broad matcher
This commit is contained in:
@@ -81,12 +81,10 @@ describe("PlaywrightDiffScreenshotter", () => {
|
||||
|
||||
expect(launchMock).toHaveBeenCalledTimes(1);
|
||||
expect(browser.newPage).toHaveBeenCalledTimes(2);
|
||||
expect(browser.newPage).toHaveBeenNthCalledWith(
|
||||
1,
|
||||
expect.objectContaining({
|
||||
deviceScaleFactor: 2,
|
||||
}),
|
||||
);
|
||||
const firstPageParams = browser.newPage.mock.calls[0]?.[0] as
|
||||
| { deviceScaleFactor?: number }
|
||||
| undefined;
|
||||
expect(firstPageParams?.deviceScaleFactor).toBe(2);
|
||||
expect(pages).toHaveLength(2);
|
||||
expect(pages[0]?.close).toHaveBeenCalledTimes(1);
|
||||
expect(pages[1]?.close).toHaveBeenCalledTimes(1);
|
||||
|
||||
Reference in New Issue
Block a user