Initial test for CreateImageWizard
very basic, make sure we can render all of the expected text
This commit is contained in:
parent
a407bc9490
commit
a5e56eea2f
1 changed files with 26 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
import React from 'react';
|
||||
import { screen, getByText } from '@testing-library/react';
|
||||
import { renderWithReduxRouter } from '../../testUtils';
|
||||
import CreateImageWizard from '../../../SmartComponents/CreateImageWizard/CreateImageWizard';
|
||||
|
||||
describe('Landing Page', () => {
|
||||
beforeEach(() => {
|
||||
renderWithReduxRouter(<CreateImageWizard />);
|
||||
});
|
||||
test('renders component', () => {
|
||||
// check heading
|
||||
screen.getByRole('heading', { name: /Create a new image/ });
|
||||
|
||||
// left sidebar navigation
|
||||
const nav = screen.getByRole('navigation');
|
||||
getByText(nav, 'Release');
|
||||
getByText(nav, 'Target environment');
|
||||
getByText(nav, 'Registration');
|
||||
getByText(nav, 'Review');
|
||||
|
||||
// buttons
|
||||
screen.getByRole('button', { name: /Next/ });
|
||||
screen.getByRole('button', { name: /Back/ });
|
||||
screen.getByRole('button', { name: /Cancel/ });
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue