feat(legacy): InputTime
& InputDateTime
support AM
/ PM
formats
#10238
Annotations
10 errors and 2 notices
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L38
1) [chromium] › tests/legacy/input-time/input-time.spec.ts:23:17 › InputTime › Examples › options-max
Error: Screenshot comparison failed:
9379 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/04-input-time-options-max-1-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-4515e-utTime-Examples-options-max-chromium/04-input-time-options-max-1-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-4515e-utTime-Examples-options-max-chromium/04-input-time-options-max-1-diff.png
Call log:
- expect.toHaveScreenshot(04-input-time-options-max-1.png) with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 9379 pixels (ratio 0.02 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
- 9379 pixels (ratio 0.02 of all image pixels) are different.
36 |
37 | await expect(inputTime.textfield).toBeFocused();
> 38 | await expect(page).toHaveScreenshot(
| ^
39 | `0${exampleIndex + 1}-input-time-${id}-${i + 1}.png`,
40 | );
41 | }
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:38:40
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L38
1) [chromium] › tests/legacy/input-time/input-time.spec.ts:23:17 › InputTime › Examples › options-max
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
9379 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/04-input-time-options-max-1-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-4515e-utTime-Examples-options-max-chromium-retry1/04-input-time-options-max-1-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-4515e-utTime-Examples-options-max-chromium-retry1/04-input-time-options-max-1-diff.png
Call log:
- expect.toHaveScreenshot(04-input-time-options-max-1.png) with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 9379 pixels (ratio 0.02 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
- 9379 pixels (ratio 0.02 of all image pixels) are different.
36 |
37 | await expect(inputTime.textfield).toBeFocused();
> 38 | await expect(page).toHaveScreenshot(
| ^
39 | `0${exampleIndex + 1}-input-time-${id}-${i + 1}.png`,
40 | );
41 | }
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:38:40
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L38
1) [chromium] › tests/legacy/input-time/input-time.spec.ts:23:17 › InputTime › Examples › options-max
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
9379 pixels (ratio 0.02 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/04-input-time-options-max-1-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-4515e-utTime-Examples-options-max-chromium-retry2/04-input-time-options-max-1-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-4515e-utTime-Examples-options-max-chromium-retry2/04-input-time-options-max-1-diff.png
Call log:
- expect.toHaveScreenshot(04-input-time-options-max-1.png) with timeout 5000ms
- verifying given screenshot expectation
- taking page screenshot
- disabled all CSS animations
- waiting for fonts to load...
- fonts loaded
- 9379 pixels (ratio 0.02 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
- 9379 pixels (ratio 0.02 of all image pixels) are different.
36 |
37 | await expect(inputTime.textfield).toBeFocused();
> 38 | await expect(page).toHaveScreenshot(
| ^
39 | `0${exampleIndex + 1}-input-time-${id}-${i + 1}.png`,
40 | );
41 | }
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:38:40
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L38
2) [chromium] › tests/legacy/input-time/input-time.spec.ts:23:17 › InputTime › Examples › options-max-and-postfix
Error: A snapshot doesn't exist at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/05-input-time-options-max-and-postfix-1-chromium-linux.png, writing actual.
36 |
37 | await expect(inputTime.textfield).toBeFocused();
> 38 | await expect(page).toHaveScreenshot(
| ^
39 | `0${exampleIndex + 1}-input-time-${id}-${i + 1}.png`,
40 | );
41 | }
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:38:21
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L70
3) [chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM AA mode
Error: Screenshot comparison failed:
769 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/time-mode-HH-MM-AA-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-01b19-onfigured-for-HH-MM-AA-mode-chromium/time-mode-HH-MM-AA-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-01b19-onfigured-for-HH-MM-AA-mode-chromium/time-mode-HH-MM-AA-diff.png
Call log:
- expect.toHaveScreenshot(time_mode_HH:MM AA.png) with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</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
- 769 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-ng-c2476019924="">…</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
- 769 pixels (ratio 0.01 of all image pixels) are different.
68 | await inputTime.textfield.click();
69 |
> 70 | await expect(apiPageExample).toHaveScreenshot(`time_mode_${mode}.png`);
| ^
71 | });
72 | });
73 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:70:46
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L70
3) [chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM AA mode
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
769 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/time-mode-HH-MM-AA-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-01b19-onfigured-for-HH-MM-AA-mode-chromium-retry1/time-mode-HH-MM-AA-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-01b19-onfigured-for-HH-MM-AA-mode-chromium-retry1/time-mode-HH-MM-AA-diff.png
Call log:
- expect.toHaveScreenshot(time_mode_HH:MM AA.png) with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</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
- 769 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-ng-c2476019924="">…</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
- 769 pixels (ratio 0.01 of all image pixels) are different.
68 | await inputTime.textfield.click();
69 |
> 70 | await expect(apiPageExample).toHaveScreenshot(`time_mode_${mode}.png`);
| ^
71 | });
72 | });
73 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:70:46
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L70
3) [chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM AA mode
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
769 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/time-mode-HH-MM-AA-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-01b19-onfigured-for-HH-MM-AA-mode-chromium-retry2/time-mode-HH-MM-AA-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-01b19-onfigured-for-HH-MM-AA-mode-chromium-retry2/time-mode-HH-MM-AA-diff.png
Call log:
- expect.toHaveScreenshot(time_mode_HH:MM AA.png) with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</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
- 769 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-ng-c2476019924="">…</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
- 769 pixels (ratio 0.01 of all image pixels) are different.
68 | await inputTime.textfield.click();
69 |
> 70 | await expect(apiPageExample).toHaveScreenshot(`time_mode_${mode}.png`);
| ^
71 | });
72 | });
73 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:70:46
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L70
4) [chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM:SS AA mode
Error: Screenshot comparison failed:
989 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/time-mode-HH-MM-SS-AA-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-8e052-igured-for-HH-MM-SS-AA-mode-chromium/time-mode-HH-MM-SS-AA-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-8e052-igured-for-HH-MM-SS-AA-mode-chromium/time-mode-HH-MM-SS-AA-diff.png
Call log:
- expect.toHaveScreenshot(time_mode_HH:MM:SS AA.png) with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</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
- 989 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-ng-c2476019924="">…</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
- 989 pixels (ratio 0.01 of all image pixels) are different.
68 | await inputTime.textfield.click();
69 |
> 70 | await expect(apiPageExample).toHaveScreenshot(`time_mode_${mode}.png`);
| ^
71 | });
72 | });
73 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:70:46
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L70
4) [chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM:SS AA mode
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
989 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/time-mode-HH-MM-SS-AA-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-8e052-igured-for-HH-MM-SS-AA-mode-chromium-retry1/time-mode-HH-MM-SS-AA-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-8e052-igured-for-HH-MM-SS-AA-mode-chromium-retry1/time-mode-HH-MM-SS-AA-diff.png
Call log:
- expect.toHaveScreenshot(time_mode_HH:MM:SS AA.png) with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</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
- 989 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-ng-c2476019924="">…</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
- 989 pixels (ratio 0.01 of all image pixels) are different.
68 | await inputTime.textfield.click();
69 |
> 70 | await expect(apiPageExample).toHaveScreenshot(`time_mode_${mode}.png`);
| ^
71 | });
72 | });
73 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:70:46
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts#L70
4) [chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM:SS AA mode
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Screenshot comparison failed:
989 pixels (ratio 0.01 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/legacy/input-time/input-time.spec.ts-snapshots/time-mode-HH-MM-SS-AA-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-8e052-igured-for-HH-MM-SS-AA-mode-chromium-retry2/time-mode-HH-MM-SS-AA-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-legacy-input-time-in-8e052-igured-for-HH-MM-SS-AA-mode-chromium-retry2/time-mode-HH-MM-SS-AA-diff.png
Call log:
- expect.toHaveScreenshot(time_mode_HH:MM:SS AA.png) with timeout 5000ms
- verifying given screenshot expectation
- waiting for locator('#demo-content')
- locator resolved to <div id="demo-content" _ngcontent-ng-c2476019924="">…</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
- 989 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-ng-c2476019924="">…</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
- 989 pixels (ratio 0.01 of all image pixels) are different.
68 | await inputTime.textfield.click();
69 |
> 70 | await expect(apiPageExample).toHaveScreenshot(`time_mode_${mode}.png`);
| ^
71 | });
72 | });
73 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts:70:46
|
Run screenshot tests on dist/demo/browser/main
10 failed
[chromium] › tests/legacy/input-time/input-time.spec.ts:23:17 › InputTime › Examples › options-max
[chromium] › tests/legacy/input-time/input-time.spec.ts:23:17 › InputTime › Examples › options-max-and-postfix
[chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM AA mode
[chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM:SS AA mode
[chromium] › tests/legacy/input-time/input-time.spec.ts:63:17 › InputTime › API › the input is configured for HH:MM:SS.MSS AA mode
[chromium] › tests/legacy/input-time/input-time.spec.ts:210:21 › InputTime › API › Basic typing from keyboard › HH:MM AA › 2 => 02
[chromium] › tests/legacy/input-time/input-time.spec.ts:264:21 › InputTime › API › zero padding on blur › HH:MM AA › Type 0 => Blur => 12:00 AM
[chromium] › tests/legacy/input-time/input-time.spec.ts:264:21 › InputTime › API › zero padding on blur › HH:MM AA › Type 01 => Blur => 01:00 AM
[chromium] › tests/legacy/input-time/input-time.spec.ts:264:21 › InputTime › API › zero padding on blur › HH:MM AA › Type 012 => Blur => 01:02 AM
[chromium] › tests/legacy/input-time/input-time.spec.ts:264:21 › InputTime › API › zero padding on blur › HH:MM AA › Type 0123 => Blur => 01:23 AM
88 passed (2.1m)
|
Run screenshot tests on dist/demo/browser
98 passed (1.6m)
|
Loading