fix(kit): InputNumber
has rounding problems on blur with float large numbers
#10932
Annotations
4 errors, 1 warning, and 2 notices
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts#L45
1) [chromium] › tests/legacy/input-number/input-number.pw.spec.ts:32:13 › InputNumber › API › does not mutate already valid too large number on blur
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('#demo-content').getByTestId('tui-primitive-textfield__native-input')
Expected string: "123_456_789_012_345.67"
Received string: "123_456_789_012_345.69"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('#demo-content').getByTestId('tui-primitive-textfield__native-input')
9 × locator resolved to <input tabindex="0" maxlength="23" inputmode="decimal" aria-invalid="false" _ngcontent-ng-c3831396199="" id="tui_interactive_391601061540000" class="t-input ng-valid ng-dirty ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "123_456_789_012_345.69"
43 | await input.blur();
44 |
> 45 | await expect(input).toHaveValue('123_456_789_012_345.67');
| ^
46 | });
47 |
48 | test('prefix + value + postfix', async ({page}) => {
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts:45:33
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts#L45
1) [chromium] › tests/legacy/input-number/input-number.pw.spec.ts:32:13 › InputNumber › API › does not mutate already valid too large number on blur
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('#demo-content').getByTestId('tui-primitive-textfield__native-input')
Expected string: "123_456_789_012_345.67"
Received string: "123_456_789_012_345.69"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('#demo-content').getByTestId('tui-primitive-textfield__native-input')
9 × locator resolved to <input tabindex="0" maxlength="23" inputmode="decimal" aria-invalid="false" _ngcontent-ng-c3831396199="" id="tui_interactive_391601061540000" class="t-input ng-valid ng-dirty ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "123_456_789_012_345.69"
43 | await input.blur();
44 |
> 45 | await expect(input).toHaveValue('123_456_789_012_345.67');
| ^
46 | });
47 |
48 | test('prefix + value + postfix', async ({page}) => {
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts:45:33
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts#L45
1) [chromium] › tests/legacy/input-number/input-number.pw.spec.ts:32:13 › InputNumber › API › does not mutate already valid too large number on blur
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveValue(expected)
Locator: locator('#demo-content').getByTestId('tui-primitive-textfield__native-input')
Expected string: "123_456_789_012_345.67"
Received string: "123_456_789_012_345.69"
Call log:
- expect.toHaveValue with timeout 5000ms
- waiting for locator('#demo-content').getByTestId('tui-primitive-textfield__native-input')
9 × locator resolved to <input tabindex="0" maxlength="23" inputmode="decimal" aria-invalid="false" _ngcontent-ng-c3831396199="" id="tui_interactive_391601061540000" class="t-input ng-valid ng-dirty ng-touched" automation-id="tui-primitive-textfield__native-input"/>
- unexpected value "123_456_789_012_345.69"
43 | await input.blur();
44 |
> 45 | await expect(input).toHaveValue('123_456_789_012_345.67');
| ^
46 | });
47 |
48 | test('prefix + value + postfix', async ({page}) => {
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts:45:33
|
Run screenshot tests on dist/demo/browser/main
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run screenshot tests on dist/demo/browser
109 passed (1.7m)
|
Run screenshot tests on dist/demo/browser/main
1 failed
[chromium] › tests/legacy/input-number/input-number.pw.spec.ts:32:13 › InputNumber › API › does not mutate already valid too large number on blur
108 passed (1.7m)
|
Loading