Shorten syntax in thrown() examples #24
Annotations
3 errors and 1 notice
|
Run Playwright Tests
Process completed with exit code 1.
|
|
Run Playwright Tests:
spock-website/tests/visual.spec.ts#L5
2) [firefox] › tests/visual.spec.ts:3:1 › visual snapshot ────────────────────────────────────────
Error: expect(page).toHaveScreenshot(expected) failed
4981 pixels (ratio 0.01 of all image pixels) are different.
Snapshot: index.png
Call log:
- Expect "toHaveScreenshot(index.png)" with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 4981 pixels (ratio 0.01 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 4981 pixels (ratio 0.01 of all image pixels) are different.
3 | test('visual snapshot', async ({ page }) => {
4 | await page.goto('/?disableaos');
> 5 | await expect(page).toHaveScreenshot('index.png', { fullPage: true });
| ^
6 | });
7 |
at /__w/spockframework.github.io/spockframework.github.io/spock-website/tests/visual.spec.ts:5:24
|
|
Run Playwright Tests:
spock-website/tests/visual.spec.ts#L5
1) [chromium] › tests/visual.spec.ts:3:1 › visual snapshot ───────────────────────────────────────
Error: expect(page).toHaveScreenshot(expected) failed
5405 pixels (ratio 0.01 of all image pixels) are different.
Snapshot: index.png
Call log:
- Expect "toHaveScreenshot(index.png)" with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 5405 pixels (ratio 0.01 of all image pixels) are different.
- waiting 100ms before taking screenshot
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- captured a stable screenshot
- 5405 pixels (ratio 0.01 of all image pixels) are different.
3 | test('visual snapshot', async ({ page }) => {
4 | await page.goto('/?disableaos');
> 5 | await expect(page).toHaveScreenshot('index.png', { fullPage: true });
| ^
6 | });
7 |
at /__w/spockframework.github.io/spockframework.github.io/spock-website/tests/visual.spec.ts:5:24
|
|
Run Playwright Tests
2 failed
[chromium] › tests/visual.spec.ts:3:1 › visual snapshot ────────────────────────────────────────
[firefox] › tests/visual.spec.ts:3:1 › visual snapshot ─────────────────────────────────────────
|
Loading