refactor(kit)!: InputFiles
refactor API and get rid of built-in rejections
#349
Annotations
4 errors and 2 notices
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/deep/deep-toggle.spec.ts#L32
1) [chromium] › tests/deep/deep-toggle.spec.ts:8:13 › Deep / Toggle › /components/input-files ────
Error: Screenshot comparison failed:
Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/deep/deep-toggle.spec.ts-snapshots/deep--components-input-files-disabled-toggled-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-toggle-Deep-Toggle-components-input-files-chromium/deep--components-input-files-disabled-toggled-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-toggle-Deep-Toggle-components-input-files-chromium/deep--components-input-files-disabled-toggled-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-tui-demo-c130="">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- waiting for element to be visible and stable
- element is visible and stable
- Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-tui-demo-c130="">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
30 | await api.networkidle();
31 |
> 32 | await expect(api.apiPageExample).toHaveScreenshot(
| ^
33 | `deep-${path}__${name}-toggled.png`,
34 | );
35 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/deep/deep-toggle.spec.ts:32:50
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/deep/deep-toggle.spec.ts#L32
1) [chromium] › tests/deep/deep-toggle.spec.ts:8:13 › Deep / Toggle › /components/input-files ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/deep/deep-toggle.spec.ts-snapshots/deep--components-input-files-disabled-toggled-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-toggle-Deep-Toggle-components-input-files-chromium-retry1/deep--components-input-files-disabled-toggled-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-toggle-Deep-Toggle-components-input-files-chromium-retry1/deep--components-input-files-disabled-toggled-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-tui-demo-c130="">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- waiting for element to be visible and stable
- element is visible and stable
- Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-tui-demo-c130="">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
30 | await api.networkidle();
31 |
> 32 | await expect(api.apiPageExample).toHaveScreenshot(
| ^
33 | `deep-${path}__${name}-toggled.png`,
34 | );
35 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/deep/deep-toggle.spec.ts:32:50
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/deep/deep-toggle.spec.ts#L32
1) [chromium] › tests/deep/deep-toggle.spec.ts:8:13 › Deep / Toggle › /components/input-files ────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/deep/deep-toggle.spec.ts-snapshots/deep--components-input-files-disabled-toggled-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-toggle-Deep-Toggle-components-input-files-chromium-retry2/deep--components-input-files-disabled-toggled-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-deep-deep-toggle-Deep-Toggle-components-input-files-chromium-retry2/deep--components-input-files-disabled-toggled-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-tui-demo-c130="">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- waiting for element to be visible and stable
- element is visible and stable
- Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-tui-demo-c130="">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- Expected an image 1356px by 152px, received 1356px by 128px. 4754 pixels (ratio 0.03 of all image pixels) are different.
30 | await api.networkidle();
31 |
> 32 | await expect(api.apiPageExample).toHaveScreenshot(
| ^
33 | `deep-${path}__${name}-toggled.png`,
34 | );
35 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/deep/deep-toggle.spec.ts:32:50
|
Run screenshot tests on dist/demo/browser/main
Process completed with exit code 1.
|
Run screenshot tests on dist/demo/browser/main
1 failed
[chromium] › tests/deep/deep-toggle.spec.ts:8:13 › Deep / Toggle › /components/input-files ─────
110 passed (2.6m)
|
Run screenshot tests on dist/demo/browser
111 passed (3.0m)
|
The logs for this run have expired and are no longer available.
Loading