test: Update testUtils
This updates `clickBack`, `clickCancel` and `clickNext` functions in testUtils.js
This commit is contained in:
parent
31859822e9
commit
9f3ed3d0ec
1 changed files with 3 additions and 3 deletions
|
|
@ -77,17 +77,17 @@ export const renderWithProvider = (
|
|||
|
||||
export const clickBack = async () => {
|
||||
const user = userEvent.setup();
|
||||
await user.click(screen.getByRole('button', { name: /Back/ }));
|
||||
await user.click(await screen.findByRole('button', { name: /Back/ }));
|
||||
};
|
||||
|
||||
export const clickNext = async () => {
|
||||
const user = userEvent.setup();
|
||||
await user.click(screen.getByRole('button', { name: /Next/ }));
|
||||
await user.click(await screen.findByRole('button', { name: /Next/ }));
|
||||
};
|
||||
|
||||
export const clickCancel = async () => {
|
||||
const user = userEvent.setup();
|
||||
await user.click(screen.getByRole('button', { name: /Cancel/ }));
|
||||
await user.click(await screen.findByRole('button', { name: /Cancel/ }));
|
||||
};
|
||||
|
||||
export const getNextButton = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue