-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[Bug]: toHaveScreenshot Timeout #32063
Copy link
Copy link
Closed
Description
Version
1.45.3
Steps to reproduce
await page.goto(`https://modern-uitest.myshopline.com`,{ timeout: 60000 });
await page.waitForTimeout(1000);
await page.locator(`//*[contains(@class,'product--left')]`).first().scrollIntoViewIfNeeded({ timeout: 30000 });
await page.waitForTimeout(1000);
await expect(page).toHaveScreenshot('product.png', { mask: [] });
await page.waitForTimeout(1000);Expected behavior
success to take screenshot
Actual behavior
failed to take screenshot
Call log:
- expect.soft.toHaveScreenshot(单个商品.png) with timeout 10000ms
- generating new stable screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- Timeout 10000ms exceeded.
Additional context
No response
Environment
System:
OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
CPU: (4) x64 Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
Memory: 7.73 GB / 8.00 GB
Container: Yes
Binaries:
Node: 22.5.1 - /bin/node
npm: 10.8.2 - /bin/npm
Languages:
Bash: 4.3.48 - /bin/bash
npmPackages:
@playwright/test: ^1.45.3 => 1.45.3Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels