feat(DatePicker): Enhance with Year Month selection #3104
Annotations
3 errors and 1 notice
Run e2e tests:
packages/react-component-library/e2e/DatePicker/default.spec.ts#L85
1) [firefox] › DatePicker/default.spec.ts:55:7 › DatePicker, jump to today › jumps to today when button is clicked
Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected)
Locator: getByRole('gridcell', { name: /^5$/ })
Expected pattern: /rdp-day_selected/
Received string: "rdp-button_reset rdp-button rdp-day"
Call log:
- expect.toHaveClass with timeout 5000ms
- waiting for getByRole('gridcell', { name: /^5$/ })
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
83 | })
84 |
> 85 | await expect(todayButton).toHaveClass(/rdp-day_selected/)
| ^
86 | await expect(todayButton).toHaveClass(/rdp-day_today/)
87 | await expect(todayButton).toHaveAttribute('aria-selected', 'true')
88 | })
at /home/runner/work/design-system/design-system/packages/react-component-library/e2e/DatePicker/default.spec.ts:85:31
|
Run e2e tests:
packages/react-component-library/e2e/DatePicker/default.spec.ts#L85
1) [firefox] › DatePicker/default.spec.ts:55:7 › DatePicker, jump to today › jumps to today when button is clicked
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveClass(expected)
Locator: getByRole('gridcell', { name: /^5$/ })
Expected pattern: /rdp-day_selected/
Received string: "rdp-button_reset rdp-button rdp-day"
Call log:
- expect.toHaveClass with timeout 5000ms
- waiting for getByRole('gridcell', { name: /^5$/ })
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
- locator resolved to <button name="day" tabindex="-1" type="button" role="gridcell" class="rdp-button_reset rdp-button rdp-day">5</button>
- unexpected value "rdp-button_reset rdp-button rdp-day"
83 | })
84 |
> 85 | await expect(todayButton).toHaveClass(/rdp-day_selected/)
| ^
86 | await expect(todayButton).toHaveClass(/rdp-day_today/)
87 | await expect(todayButton).toHaveAttribute('aria-selected', 'true')
88 | })
at /home/runner/work/design-system/design-system/packages/react-component-library/e2e/DatePicker/default.spec.ts:85:31
|
Run e2e tests
Process completed with exit code 1.
|
Run e2e tests
1 failed
[firefox] › DatePicker/default.spec.ts:55:7 › DatePicker, jump to today › jumps to today when button is clicked
2 skipped
111 passed (1.1m)
|
Loading