ci: any playwright test should fail on any uncaught SSR error #950
Annotations
4 errors and 2 notices
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-slider/input-slider.spec.ts#L54
1) [chromium] › tests/kit/input-slider/input-slider.spec.ts:40:13 › InputSlider › examples page › pressing ArrowUp/ArrowDown change textInput value and slider position
Error: Screenshot comparison failed:
288 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-slider/input-slider.spec.ts-snapshots/2-0-arrow-up-checks-4-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-slider-input-slider-InputSlide-0d3f3-Down-change-textInput-value-and-slider-position-chromium/2-0-arrow-up-checks-4-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-slider-input-slider-InputSlide-0d3f3-Down-change-textInput-value-and-slider-position-chromium/2-0-arrow-up-checks-4-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#right-label [automation-id="tui-doc-example"]')
- locator resolved to <div _ngcontent-ng-c891291879="" automation-id="tui-d…>…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- 288 pixels (ratio 0.01 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#right-label [automation-id="tui-doc-example"]')
- locator resolved to <div _ngcontent-ng-c891291879="" automation-id="tui-d…>…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- captured a stable screenshot
- 288 pixels (ratio 0.01 of all image pixels) are different.
52 | await expect(inputSlider.textfield).toHaveValue(`${i}`);
53 | await expect(inputSlider.slider).toHaveValue(`${i}`);
> 54 | await expect(example).toHaveScreenshot(`2-0-arrow-up-checks-${i}.png`);
| ^
55 | }
56 |
57 | for (let i = 9; i >= 0; i--) {
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-slider/input-slider.spec.ts:54:39
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-slider/input-slider.spec.ts#L54
1) [chromium] › tests/kit/input-slider/input-slider.spec.ts:40:13 › InputSlider › examples page › pressing ArrowUp/ArrowDown change textInput value and slider position
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
321 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-slider/input-slider.spec.ts-snapshots/2-0-arrow-up-checks-5-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-slider-input-slider-InputSlide-0d3f3-Down-change-textInput-value-and-slider-position-chromium-retry1/2-0-arrow-up-checks-5-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-slider-input-slider-InputSlide-0d3f3-Down-change-textInput-value-and-slider-position-chromium-retry1/2-0-arrow-up-checks-5-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#right-label [automation-id="tui-doc-example"]')
- locator resolved to <div _ngcontent-ng-c891291879="" automation-id="tui-d…>…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- 321 pixels (ratio 0.01 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#right-label [automation-id="tui-doc-example"]')
- locator resolved to <div _ngcontent-ng-c891291879="" automation-id="tui-d…>…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- captured a stable screenshot
- 321 pixels (ratio 0.01 of all image pixels) are different.
52 | await expect(inputSlider.textfield).toHaveValue(`${i}`);
53 | await expect(inputSlider.slider).toHaveValue(`${i}`);
> 54 | await expect(example).toHaveScreenshot(`2-0-arrow-up-checks-${i}.png`);
| ^
55 | }
56 |
57 | for (let i = 9; i >= 0; i--) {
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-slider/input-slider.spec.ts:54:39
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-slider/input-slider.spec.ts#L54
1) [chromium] › tests/kit/input-slider/input-slider.spec.ts:40:13 › InputSlider › examples page › pressing ArrowUp/ArrowDown change textInput value and slider position
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
288 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-slider/input-slider.spec.ts-snapshots/2-0-arrow-up-checks-4-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-slider-input-slider-InputSlide-0d3f3-Down-change-textInput-value-and-slider-position-chromium-retry2/2-0-arrow-up-checks-4-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-slider-input-slider-InputSlide-0d3f3-Down-change-textInput-value-and-slider-position-chromium-retry2/2-0-arrow-up-checks-4-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#right-label [automation-id="tui-doc-example"]')
- locator resolved to <div _ngcontent-ng-c891291879="" automation-id="tui-d…>…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- 288 pixels (ratio 0.01 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#right-label [automation-id="tui-doc-example"]')
- locator resolved to <div _ngcontent-ng-c891291879="" automation-id="tui-d…>…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- attempting scroll into view action
- waiting for element to be stable
- captured a stable screenshot
- 288 pixels (ratio 0.01 of all image pixels) are different.
52 | await expect(inputSlider.textfield).toHaveValue(`${i}`);
53 | await expect(inputSlider.slider).toHaveValue(`${i}`);
> 54 | await expect(example).toHaveScreenshot(`2-0-arrow-up-checks-${i}.png`);
| ^
55 | }
56 |
57 | for (let i = 9; i >= 0; i--) {
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-slider/input-slider.spec.ts:54:39
|
Run screenshot tests on dist/demo/browser/main
Process completed with exit code 1.
|
Run screenshot tests on dist/demo/browser
109 passed (2.3m)
|
Run screenshot tests on dist/demo/browser/main
1 failed
[chromium] › tests/kit/input-slider/input-slider.spec.ts:40:13 › InputSlider › examples page › pressing ArrowUp/ArrowDown change textInput value and slider position
108 passed (1.6m)
|
Loading