build(deps-dev): Bump @testing-library/dom from 9.3.4 to 10.1.0 #4094
Annotations
4 errors and 1 warning
Run tests with coverage:
src/components/forms/ComboBox/ComboBox.test.tsx#L1520
Error: expect(element).not.toHaveClass("usa-combo-box__list-option--focused")
Expected the element not to have class:
usa-combo-box__list-option--focused
Received:
usa-combo-box__list-option usa-combo-box__list-option--focused
❯ src/components/forms/ComboBox/ComboBox.test.tsx:1520:36
|
Run tests with coverage:
src/components/forms/DatePicker/Calendar.test.tsx#L129
Error: expect(element).toHaveFocus()
Expected element with focus:
<button
aria-label="13 January 2021 Wednesday"
aria-selected="false"
class="usa-date-picker__calendar__date usa-date-picker__calendar__date--current-month usa-date-picker__calendar__date--focused"
data-day="13"
data-month="1"
data-testid="select-date"
data-value="2021-01-13"
data-year="2021"
tabindex="0"
type="button"
>
13
</button>
Received element with focus:
<button
aria-label="20 January 2021 Wednesday"
aria-selected="false"
class="usa-date-picker__calendar__date usa-date-picker__calendar__date--current-month"
data-day="20"
data-month="1"
data-testid="select-date"
data-value="2021-01-20"
data-year="2021"
tabindex="-1"
type="button"
>
20
</button>
❯ src/components/forms/DatePicker/Calendar.test.tsx:129:50
|
Run tests with coverage:
src/components/forms/DateRangePicker/DateRangePicker.test.tsx#L292
Error: expect(element).toHaveFocus()
Expected element with focus:
<input
class="usa-input usa-date-picker__external-input"
data-testid="date-picker-external-input"
id="start-date"
type="text"
value="01/21/2021"
/>
Received element with focus:
<body>
<div>
<div
class="usa-date-range-picker"
data-testid="date-range-picker"
>
<div
class="usa-form-group"
data-testid="formGroup"
>
<div
class="usa-date-picker usa-date-picker--initialized usa-date-range-picker__range-start"
data-testid="date-picker"
>
<input
aria-hidden="true"
class="usa-input usa-sr-only usa-date-picker__internal-input"
data-testid="date-picker-internal-input"
name="start-date"
readonly=""
tabindex="-1"
type="text"
value="2021-01-21"
/>
<div
class="usa-date-picker__wrapper"
tabindex="-1"
>
<input
class="usa-input usa-date-picker__external-input"
data-testid="date-picker-external-input"
id="start-date"
type="text"
value="01/21/2021"
/>
<button
aria-haspopup="true"
aria-label="Toggle calendar"
class="usa-date-picker__button"
data-testid="date-picker-button"
type="button"
/>
<div
class="usa-date-picker__calendar"
data-testid="date-picker-calendar"
data-value="2021-01-20"
hidden=""
role="application"
style="top: 0px;"
/>
<div
aria-live="polite"
class="usa-sr-only usa-date-picker__status"
data-testid="date-picker-status"
role="status"
>
January 2021
</div>
</div>
</div>
</div>
<div
class="usa-form-group"
data-testid="formGroup"
>
<div
class="usa-date-picker usa-date-picker--initialized usa-date-range-picker__range-end"
data-testid="date-picker"
>
<input
aria-hidden="true"
class="usa-input usa-sr-only usa-date-picker__internal-input"
data-testid="date-picker-internal-input"
name="end-date"
readonly=""
tabindex="-1"
type="text"
value="2021-01-25"
/>
<div
class="usa-date-picker__wrapper"
tabindex="-1"
>
<input
class="usa-input usa-date-picker__external-input"
data-testid="date-picker-external-input"
id="end-date"
type="text"
value="01/25/2021"
/>
<button
aria-haspopup="true"
aria-label="Toggle calendar"
class="usa-date-picker__button"
data-testid="date-picker-button"
type="button"
/>
<div
class="usa-date-picker__calendar"
data-testid="date-picker-calendar"
hidden=""
role="application"
style="top: 0px;"
/>
<div
aria-live="polite"
class="usa-sr-only usa-date-picker__status"
data-testid="date-picker-status"
role="status"
/>
</div>
</div>
</div>
</div>
</div>
</body>
❯ src/components/forms/DateRangePicker/DateRangePicker.test.tsx:292:42
|
Run tests with coverage
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading