fix/increased delete all nodata button width #267
unit-and-screenshot-tests.yml
on: pull_request
Unit and screenshot tests
3m 39s
Annotations
10 errors and 1 notice
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--default:
playwright/helpers/expectToMatchScreenshot.ts#L11
1) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--default ───
Error: Screenshot comparison failed:
5314 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--default.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--default-chromium/MetricList/metriclist--default-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--default-chromium/MetricList/metriclist--default-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5314 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5314 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--default:
playwright/helpers/expectToMatchScreenshot.ts#L11
1) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--default ───
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
5314 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--default.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--default-chromium-retry1/MetricList/metriclist--default-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--default-chromium-retry1/MetricList/metriclist--default-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5314 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5314 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--default:
playwright/helpers/expectToMatchScreenshot.ts#L11
1) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--default ───
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
5314 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--default.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--default-chromium-retry2/MetricList/metriclist--default-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--default-chromium-retry2/MetricList/metriclist--default-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5314 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5314 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-status-indicator:
playwright/helpers/expectToMatchScreenshot.ts#L11
2) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-status-indicator
Error: Screenshot comparison failed:
5337 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--with-status-indicator.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-status-indicator-chromium/MetricList/metriclist--with-status-indicator-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-status-indicator-chromium/MetricList/metriclist--with-status-indicator-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5337 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5337 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-status-indicator:
playwright/helpers/expectToMatchScreenshot.ts#L11
2) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-status-indicator
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
5337 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--with-status-indicator.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-status-indicator-chromium-retry1/MetricList/metriclist--with-status-indicator-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-status-indicator-chromium-retry1/MetricList/metriclist--with-status-indicator-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5337 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5337 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-status-indicator:
playwright/helpers/expectToMatchScreenshot.ts#L11
2) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-status-indicator
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
5337 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--with-status-indicator.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-status-indicator-chromium-retry2/MetricList/metriclist--with-status-indicator-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-status-indicator-chromium-retry2/MetricList/metriclist--with-status-indicator-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5337 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5337 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-remove-all-nodata:
playwright/helpers/expectToMatchScreenshot.ts#L11
3) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-remove-all-nodata
Error: Screenshot comparison failed:
5860 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--with-remove-all-nodata.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-remove-all-nodata-chromium/MetricList/metriclist--with-remove-all-nodata-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-remove-all-nodata-chromium/MetricList/metriclist--with-remove-all-nodata-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5860 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5860 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-remove-all-nodata:
playwright/helpers/expectToMatchScreenshot.ts#L11
3) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-remove-all-nodata
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
5860 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--with-remove-all-nodata.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-remove-all-nodata-chromium-retry1/MetricList/metriclist--with-remove-all-nodata-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-remove-all-nodata-chromium-retry1/MetricList/metriclist--with-remove-all-nodata-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5860 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5860 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-remove-all-nodata:
playwright/helpers/expectToMatchScreenshot.ts#L11
3) [chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-remove-all-nodata
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
5860 pixels (ratio 0.04 of all image pixels) are different.
Expected: /app/playwright/snapshots/MetricList/metriclist--with-remove-all-nodata.png
Received: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-remove-all-nodata-chromium-retry2/MetricList/metriclist--with-remove-all-nodata-actual.png
Diff: /app/test-results/screenshotTests-screenshotTest-MetricList-–-metriclist--with-remove-all-nodata-chromium-retry2/MetricList/metriclist--with-remove-all-nodata-diff.png
Call log:
- page._expectScreenshot with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root"></div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is not visible - waiting...
- element is visible and stable
- 5860 pixels (ratio 0.04 of all image pixels) are different.
- waiting 100ms before taking screenshot
- waiting for locator('#storybook-root')
- locator resolved to <div id="storybook-root">…</div>
- taking element screenshot
- disabled all CSS animations
- waiting for element to be visible and stable
- element is visible and stable
- captured a stable screenshot
- 5860 pixels (ratio 0.04 of all image pixels) are different.
at helpers/expectToMatchScreenshot.ts:11
9 | } else {
10 | const element = page.locator("#storybook-root");
> 11 | await expect(element).toHaveScreenshot([component, `${story}.png`]);
| ^
12 | }
13 | }
14 |
at expectToMatchScreenshot (/app/playwright/helpers/expectToMatchScreenshot.ts:11:31)
at /app/playwright/screenshotTests/screenshotTest.spec.ts:10:42
|
Unit and screenshot tests
Process completed with exit code 1.
|
🎭 Playwright Run Summary
3 failed
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--default ────
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-status-indicator
[chromium] › screenshotTests/screenshotTest.spec.ts:8:13 › MetricList – metriclist--with-remove-all-nodata
153 passed (1.8m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
screenshots-report
Expired
|
1.98 MB |
|