fix(core): dont allow to select disabled dates in calendar #11024
Annotations
6 errors, 1 warning, and 2 notices
Run screenshot tests on dist/demo/browser:
projects/demo-playwright/tests/kit/dropdown-hover/dropdown-hover.pw.spec.ts#L67
1) [chromium] › tests/kit/dropdown-hover/dropdown-hover.pw.spec.ts:56:17 › DropdownHover › Examples › With DropdownMobile › Closes dropdown on click on overlay
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for locator('tui-dropdown-mobile').locator('.t-filler')
- locator resolved to <div waintersectionobserver="" waintersectionthreshold="1" class="t-filler ng-tns-c3475129421-24 ng-star-inserted"></div>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- performing click action
- <tui-doc-example id="dropdown-mobile" _nghost-ng-c644840128="" class="ng-star-inserted" heading="With DropdownMobile">…</tui-doc-example> from <div class="t-root-content">…</div> subtree intercepts pointer events
- retrying click action
- waiting for element to be visible, enabled and stable
- element was detached from the DOM, retrying
65 | await expect(page.locator('tui-dropdown-mobile')).toBeVisible();
66 |
> 67 | await mobileCalendar.overlay.click();
| ^
68 |
69 | await expect(page.locator('tui-dropdown-mobile')).not.toBeAttached();
70 | });
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/dropdown-hover/dropdown-hover.pw.spec.ts:67:46
|
Run screenshot tests on dist/demo/browser:
projects/demo-playwright/tests/kit/dropdown-hover/dropdown-hover.pw.spec.ts#L67
1) [chromium] › tests/kit/dropdown-hover/dropdown-hover.pw.spec.ts:56:17 › DropdownHover › Examples › With DropdownMobile › Closes dropdown on click on overlay
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 10000ms exceeded.
Call log:
- waiting for locator('tui-dropdown-mobile').locator('.t-filler')
- locator resolved to <div waintersectionobserver="" waintersectionthreshold="1" class="t-filler ng-tns-c3475129421-24 ng-star-inserted"></div>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- performing click action
- <tui-doc-example id="dropdown-mobile" _nghost-ng-c644840128="" class="ng-star-inserted" heading="With DropdownMobile">…</tui-doc-example> from <div class="t-root-content">…</div> subtree intercepts pointer events
- retrying click action
- waiting for element to be visible, enabled and stable
- element was detached from the DOM, retrying
65 | await expect(page.locator('tui-dropdown-mobile')).toBeVisible();
66 |
> 67 | await mobileCalendar.overlay.click();
| ^
68 |
69 | await expect(page.locator('tui-dropdown-mobile')).not.toBeAttached();
70 | });
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/dropdown-hover/dropdown-hover.pw.spec.ts:67:46
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts#L115
1) [chromium] › tests/kit/calendar-range/calendar-range.pw.spec.ts:96:13 › CalendarRange › API › Dont allow to select disabled dates in calendar
Error: expect(locator).toHaveScreenshot(expected)
21693 pixels (ratio 0.03 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/calendar-range/calendar-range.pw.spec.ts-snapshots/08-disabled-dates-4-click-to-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-calendar-range-c-47c90--disabled-dates-in-calendar-chromium/08-disabled-dates-4-click-to-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-calendar-range-c-47c90--disabled-dates-in-calendar-chromium/08-disabled-dates-4-click-to-diff.png
Call log:
- expect.toHaveScreenshot(08-disabled-dates-4-click-to.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
- 21693 pixels (ratio 0.03 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
- 21693 pixels (ratio 0.03 of all image pixels) are different.
113 | await page.mouse.click(100, 100); // clear focus
114 |
> 115 | await expect(example).toHaveScreenshot('08-disabled-dates-4-click-to.png');
| ^
116 |
117 | await getCells().nth(0).click();
118 | await page.mouse.click(100, 100); // clear focus
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts:115:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts#L115
1) [chromium] › tests/kit/calendar-range/calendar-range.pw.spec.ts:96:13 › CalendarRange › API › Dont allow to select disabled dates in calendar
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveScreenshot(expected)
21693 pixels (ratio 0.03 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/calendar-range/calendar-range.pw.spec.ts-snapshots/08-disabled-dates-4-click-to-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-calendar-range-c-47c90--disabled-dates-in-calendar-chromium-retry1/08-disabled-dates-4-click-to-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-calendar-range-c-47c90--disabled-dates-in-calendar-chromium-retry1/08-disabled-dates-4-click-to-diff.png
Call log:
- expect.toHaveScreenshot(08-disabled-dates-4-click-to.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
- 21693 pixels (ratio 0.03 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
- 21693 pixels (ratio 0.03 of all image pixels) are different.
113 | await page.mouse.click(100, 100); // clear focus
114 |
> 115 | await expect(example).toHaveScreenshot('08-disabled-dates-4-click-to.png');
| ^
116 |
117 | await getCells().nth(0).click();
118 | await page.mouse.click(100, 100); // clear focus
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts:115:35
|
Run screenshot tests on dist/demo/browser/main:
projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts#L115
1) [chromium] › tests/kit/calendar-range/calendar-range.pw.spec.ts:96:13 › CalendarRange › API › Dont allow to select disabled dates in calendar
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveScreenshot(expected)
21693 pixels (ratio 0.03 of all image pixels) are different.
Expected: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/snapshots/tests/kit/calendar-range/calendar-range.pw.spec.ts-snapshots/08-disabled-dates-4-click-to-chromium-linux.png
Received: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-calendar-range-c-47c90--disabled-dates-in-calendar-chromium-retry2/08-disabled-dates-4-click-to-actual.png
Diff: /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests-results/tests-kit-calendar-range-c-47c90--disabled-dates-in-calendar-chromium-retry2/08-disabled-dates-4-click-to-diff.png
Call log:
- expect.toHaveScreenshot(08-disabled-dates-4-click-to.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
- 21693 pixels (ratio 0.03 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
- 21693 pixels (ratio 0.03 of all image pixels) are different.
113 | await page.mouse.click(100, 100); // clear focus
114 |
> 115 | await expect(example).toHaveScreenshot('08-disabled-dates-4-click-to.png');
| ^
116 |
117 | await getCells().nth(0).click();
118 | await page.mouse.click(100, 100); // clear focus
at /home/runner/work/taiga-ui/taiga-ui/projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts:115:35
|
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
1 flaky
[chromium] › tests/kit/dropdown-hover/dropdown-hover.pw.spec.ts:56:17 › DropdownHover › Examples › With DropdownMobile › Closes dropdown on click on overlay
109 passed (2.1m)
|
Run screenshot tests on dist/demo/browser/main
1 failed
[chromium] › tests/kit/calendar-range/calendar-range.pw.spec.ts:96:13 › CalendarRange › API › Dont allow to select disabled dates in calendar
109 passed (1.8m)
|
Loading