Wizard: validate wizard with Redux Hook
Use redux hook to validate the form. This gives us single point of contact for "is the data valid?" while not requiring every redux action touching form data to perform validation. It's not perfect and might be improved when using external library solving the problems we're having.
This commit is contained in:
parent
fad7648d38
commit
4692eae454
10 changed files with 150 additions and 233 deletions
|
|
@ -817,7 +817,7 @@ describe('Step File system configuration', () => {
|
|||
await clickNext();
|
||||
expect(await getNextButton()).toBeDisabled();
|
||||
const mountPointAlerts = screen.getAllByRole('heading', {
|
||||
name: /danger alert: duplicate mount point\./i,
|
||||
name: /danger alert: duplicate mount point/i,
|
||||
});
|
||||
const tbody = await screen.findByTestId('file-system-configuration-tbody');
|
||||
const rows = within(tbody).getAllByRole('row');
|
||||
|
|
@ -910,7 +910,7 @@ describe('Step Details', () => {
|
|||
await clickNext();
|
||||
};
|
||||
|
||||
test('image name invalid for more than 63 chars', async () => {
|
||||
test('image name invalid for more than 100 chars and description for 250', async () => {
|
||||
await setUp();
|
||||
|
||||
// Enter image name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue