File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 10
10
aria-labelledby =" username-label"
11
11
/>
12
12
13
- <span v-show =" errors.has('username')" data-testid =" username-errors" >{{
13
+ <span v-if =" errors.has('username')" data-testid =" username-errors" >{{
14
14
errors.first('username')
15
15
}}</span >
16
16
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ test('Review form submits', async () => {
14
14
const {
15
15
getByLabelText,
16
16
getByText,
17
- getByTestId ,
17
+ getByRole ,
18
18
getByDisplayValue,
19
19
getByPlaceholderText,
20
20
emitted
@@ -44,7 +44,8 @@ test('Review form submits', async () => {
44
44
const genreSelect = getByDisplayValue ( 'Comedy' )
45
45
await fireEvent . update ( genreSelect , fakeReview . genre )
46
46
47
- const recommendInput = getByTestId ( 'recommend-checkbox' )
47
+ // Get the Input element by its implicit ARIA role.
48
+ const recommendInput = getByRole ( 'checkbox' )
48
49
await fireEvent . update ( recommendInput , fakeReview . recommend )
49
50
50
51
// NOTE: in jsdom, it's not possible to trigger a form submission
You can’t perform that action at this time.
0 commit comments