File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1010 aria-labelledby =" username-label"
1111 />
1212
13- <span v-show =" errors.has('username')" data-testid =" username-errors" >{{
13+ <span v-if =" errors.has('username')" data-testid =" username-errors" >{{
1414 errors.first('username')
1515 }}</span >
1616
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ test('Review form submits', async () => {
1414 const {
1515 getByLabelText,
1616 getByText,
17- getByTestId ,
17+ getByRole ,
1818 getByDisplayValue,
1919 getByPlaceholderText,
2020 emitted
@@ -44,7 +44,8 @@ test('Review form submits', async () => {
4444 const genreSelect = getByDisplayValue ( 'Comedy' )
4545 await fireEvent . update ( genreSelect , fakeReview . genre )
4646
47- const recommendInput = getByTestId ( 'recommend-checkbox' )
47+ // Get the Input element by its implicit ARIA role.
48+ const recommendInput = getByRole ( 'checkbox' )
4849 await fireEvent . update ( recommendInput , fakeReview . recommend )
4950
5051 // NOTE: in jsdom, it's not possible to trigger a form submission
You can’t perform that action at this time.
0 commit comments