feat(DatePicker): Enhance with Year Month selection #3104
Annotations
5 errors and 1 notice
|
Run e2e tests:
packages/react-component-library/e2e/DatePicker/default.spec.ts#L85
1) [chromium] › 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"
- 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) [chromium] › 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"
- 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/forms/empty.spec.ts#L119
2) [chromium] › forms/empty.spec.ts:112:15 › Form examples, empty › Formik › when the form is filled in correctly › and the form is submitted › submits the form values
Error: expect(received).toEqual(expected) // deep equality
- Expected - 2
+ Received + 2
Object {
"description": "Hello, World!",
"email": "[email protected]",
- "exampleAutocomplete": "four",
+ "exampleAutocomplete": null,
"exampleCheckbox": Array [
"Option 2",
],
"exampleDatePicker": "2022-01-31T12:00:00.000Z",
"exampleNumberInput": 1,
"exampleRadio": "Option 1",
"exampleRangeSlider": Array [
- 28,
+ 20,
],
"exampleSelect": "three",
"exampleSwitch": "1",
"password": "password",
}
117 | .textContent()
118 |
> 119 | await expect(JSON.parse(submittedValues as string)).toEqual(
| ^
120 | expectedResult
121 | )
122 | })
at /home/runner/work/design-system/design-system/packages/react-component-library/e2e/forms/empty.spec.ts:119:65
|
Run e2e tests
The operation was canceled.
|
Run e2e tests
1 failed
[chromium] › DatePicker/default.spec.ts:55:7 › DatePicker, jump to today › jumps to today when button is clicked
1 flaky
[chromium] › forms/empty.spec.ts:112:15 › Form examples, empty › Formik › when the form is filled in correctly › and the form is submitted › submits the form values
112 passed (53.9s)
|
Loading