File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { screen } from "@testing-library/vue";
2
2
import UserEvent from "@testing-library/user-event" ;
3
3
4
4
export async function setHeartbeatFilter ( filterText : string ) {
5
- const filterBox = < HTMLInputElement > await screen . findByRole ( "searchbox" , { name : "filter by name" } ) ;
5
+ const filterBox = < HTMLInputElement > await screen . findByRole ( "searchbox" , { name : "Filter by name" } ) ;
6
6
7
7
if ( filterText . length > 0 ) {
8
8
await UserEvent . type ( filterBox , filterText ) ;
Original file line number Diff line number Diff line change 1
1
import { screen } from "@testing-library/vue" ;
2
2
3
3
export async function getHeartbeatFilterValue ( ) {
4
- const filterBox = < HTMLInputElement > await screen . findByRole ( "searchbox" , { name : "filter by name" } ) ;
4
+ const filterBox = < HTMLInputElement > await screen . findByRole ( "searchbox" , { name : "Filter by name" } ) ;
5
5
6
6
return filterBox . value ;
7
7
}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { screen } from "@testing-library/vue";
2
2
import UserEvent from "@testing-library/user-event" ;
3
3
4
4
export async function enterFilterString ( filterString : string ) {
5
- const filterByNameInput = await screen . findByLabelText ( "filter by name" ) ;
5
+ const filterByNameInput = await screen . findByLabelText ( "Filter by name" ) ;
6
6
if ( filterString . length > 0 ) {
7
7
await UserEvent . type ( filterByNameInput , filterString ) ;
8
8
} else {
You can’t perform that action at this time.
0 commit comments