feat(legacy): InputTime
& InputDateTime
support AM
/ PM
formats
#10238
Annotations
4 errors and 2 notices
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts#L179
1) [chromium] › tests/legacy/input-date-time/input-date-time.spec.ts:165:13 › InputDateTime › API page › change filler on dynamic change of [timeMode] prop
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('.t-table .t-row:has-text("[timeMode]")').locator('.t-cell_value tui-select').first().getByRole('textbox')
Expected string: "HH:MM:SS"
Received string: "HH:MM:SS.MSS"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('.t-table .t-row:has-text("[timeMode]")').locator('.t-cell_value tui-select').first().getByRole('textbox')
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
177 | await timeModeSelect.selectOptions([2]);
178 |
> 179 | await expect(timeModeSelect.textfield).toHaveValue('HH:MM:SS');
| ^
180 |
181 | await inputDateTime.textfield.focus();
182 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts:179:52
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts#L179
1) [chromium] › tests/legacy/input-date-time/input-date-time.spec.ts:165:13 › InputDateTime › API page › change filler on dynamic change of [timeMode] prop
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('.t-table .t-row:has-text("[timeMode]")').locator('.t-cell_value tui-select').first().getByRole('textbox')
Expected string: "HH:MM:SS"
Received string: "HH:MM:SS.MSS"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('.t-table .t-row:has-text("[timeMode]")').locator('.t-cell_value tui-select').first().getByRole('textbox')
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
177 | await timeModeSelect.selectOptions([2]);
178 |
> 179 | await expect(timeModeSelect.textfield).toHaveValue('HH:MM:SS');
| ^
180 |
181 | await inputDateTime.textfield.focus();
182 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts:179:52
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts#L179
1) [chromium] › tests/legacy/input-date-time/input-date-time.spec.ts:165:13 › InputDateTime › API page › change filler on dynamic change of [timeMode] prop
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('.t-table .t-row:has-text("[timeMode]")').locator('.t-cell_value tui-select').first().getByRole('textbox')
Expected string: "HH:MM:SS"
Received string: "HH:MM:SS.MSS"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('.t-table .t-row:has-text("[timeMode]")').locator('.t-cell_value tui-select').first().getByRole('textbox')
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
- locator resolved to <input readonly tabindex="0" id="[timeMode]" aria-invalid="false" _ngcontent-ng-c3831396199="" class="t-input ng-pristine ng-valid ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "HH:MM:SS.MSS"
177 | await timeModeSelect.selectOptions([2]);
178 |
> 179 | await expect(timeModeSelect.textfield).toHaveValue('HH:MM:SS');
| ^
180 |
181 | await inputDateTime.textfield.focus();
182 |
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts:179:52
|
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/legacy/input-date-time/input-date-time.spec.ts:165:13 › InputDateTime › API page › change filler on dynamic change of [timeMode] prop
97 passed (1.6m)
|
Run screenshot tests on dist/demo/browser
98 passed (1.8m)
|
Loading