test: Add Review and finish button tests
This add tests to check whether the Review and finish button works properly, sending user to the Details step. And whether it's disabled when the state is invalid.
This commit is contained in:
parent
558bb50c34
commit
3ae642b848
8 changed files with 137 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ import {
|
|||
expectedPayloadRepositories,
|
||||
repositoriesCreateBlueprintRequest,
|
||||
} from '../../../../fixtures/editMode';
|
||||
import { clickNext } from '../../wizardTestUtils';
|
||||
import { clickNext, clickReviewAndFinish } from '../../wizardTestUtils';
|
||||
import {
|
||||
blueprintRequest,
|
||||
clickRegisterLater,
|
||||
|
|
@ -85,6 +85,15 @@ describe('Step Custom repositories', () => {
|
|||
vi.clearAllMocks();
|
||||
});
|
||||
|
||||
test('clicking Review and finish leads to Details', async () => {
|
||||
await renderCreateMode();
|
||||
await goToRepositoriesStep();
|
||||
await clickReviewAndFinish();
|
||||
await screen.findByRole('heading', {
|
||||
name: 'Details',
|
||||
});
|
||||
});
|
||||
|
||||
test('revisit step button on Review works', async () => {
|
||||
await renderCreateMode();
|
||||
await goToRepositoriesStep();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue