refactor(kit)!: InputFiles
refactor API and get rid of built-in rejections
#349
Annotations
10 errors and 2 notices
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
1) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: english)
Error: Screenshot comparison failed:
3382 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-files/input-files.spec.ts-snapshots/01-english-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-english--chromium/01-english-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-english--chromium/01-english-input-files-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
- 3382 pixels (ratio 0.01 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
- 3382 pixels (ratio 0.01 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
1) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: english)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
3803 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-files/input-files.spec.ts-snapshots/01-english-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-english--chromium-retry1/01-english-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-english--chromium-retry1/01-english-input-files-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
- 3803 pixels (ratio 0.02 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
- 3803 pixels (ratio 0.02 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
1) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: english)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
3382 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-files/input-files.spec.ts-snapshots/01-english-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-english--chromium-retry2/01-english-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-english--chromium-retry2/01-english-input-files-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
- 3382 pixels (ratio 0.01 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
- 3382 pixels (ratio 0.01 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
2) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: dutch)
Error: Screenshot comparison failed:
3616 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-files/input-files.spec.ts-snapshots/01-dutch-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-dutch--chromium/01-dutch-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-dutch--chromium/01-dutch-input-files-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
- 3616 pixels (ratio 0.02 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
- 3616 pixels (ratio 0.02 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
2) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: dutch)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
4037 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-files/input-files.spec.ts-snapshots/01-dutch-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-dutch--chromium-retry1/01-dutch-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-dutch--chromium-retry1/01-dutch-input-files-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
- 4037 pixels (ratio 0.02 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
- 4037 pixels (ratio 0.02 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
2) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: dutch)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
3616 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-files/input-files.spec.ts-snapshots/01-dutch-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-dutch--chromium-retry2/01-dutch-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-dutch--chromium-retry2/01-dutch-input-files-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
- 3616 pixels (ratio 0.02 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
- 3616 pixels (ratio 0.02 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
3) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: russian)
Error: Screenshot comparison failed:
3618 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-files/input-files.spec.ts-snapshots/01-russian-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-russian--chromium/01-russian-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-russian--chromium/01-russian-input-files-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
- 3618 pixels (ratio 0.02 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
- 3618 pixels (ratio 0.02 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
3) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: russian)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
4039 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-files/input-files.spec.ts-snapshots/01-russian-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-russian--chromium-retry1/01-russian-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-russian--chromium-retry1/01-russian-input-files-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
- 4039 pixels (ratio 0.02 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
- 4039 pixels (ratio 0.02 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L21
3) [chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: russian)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
3618 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/input-files/input-files.spec.ts-snapshots/01-russian-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-russian--chromium-retry2/01-russian-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-Wrong-file-type-i18n-russian--chromium-retry2/01-russian-input-files-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
- 3618 pixels (ratio 0.02 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
- 3618 pixels (ratio 0.02 of all image pixels) are different.
19 | .locator('input[tuiInputFiles]')
20 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 21 | await expect(example).toHaveScreenshot(`01-${language}-input-files.png`);
| ^
22 | }),
23 | );
24 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:21:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/input-files/input-files.spec.ts#L35
4) [chromium] › tests/kit/input-files/input-files.spec.ts:26:13 › InputFiles › File is bigger than (i18n: english)
Error: Screenshot comparison failed:
3382 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-files/input-files.spec.ts-snapshots/02-english-input-files-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-File-is-bigger-than-i18n-english--chromium/02-english-input-files-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-input-files-input-files-InputFiles-File-is-bigger-than-i18n-english--chromium/02-english-input-files-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
- 3382 pixels (ratio 0.01 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
- 3382 pixels (ratio 0.01 of all image pixels) are different.
33 | .locator('input[tuiInputFiles]')
34 | .setInputFiles(join(__dirname, '../../../stubs/web-api.svg'));
> 35 | await expect(example).toHaveScreenshot(`02-${language}-input-files.png`);
| ^
36 | }),
37 | );
38 | });
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts:35:35
|
Run screenshot tests on dist/demo/browser
111 passed (1.9m)
|
Run screenshot tests on dist/demo/browser/main
6 failed
[chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: english)
[chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: dutch)
[chromium] › tests/kit/input-files/input-files.spec.ts:13:13 › InputFiles › Wrong file type (i18n: russian)
[chromium] › tests/kit/input-files/input-files.spec.ts:26:13 › InputFiles › File is bigger than (i18n: english)
[chromium] › tests/kit/input-files/input-files.spec.ts:26:13 › InputFiles › File is bigger than (i18n: dutch)
[chromium] › tests/kit/input-files/input-files.spec.ts:26:13 › InputFiles › File is bigger than (i18n: russian)
105 passed (2.1m)
|
The logs for this run have expired and are no longer available.
Loading