Skip to content

Commit

Permalink
[Index management] Fix test in index template wizard (#83150)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga authored Nov 11, 2020
1 parent 9038e5c commit 244ce85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ describe('<TemplateCreate />', () => {
it('should not allow invalid json', async () => {
const { form, actions } = testBed;

await act(async () => {
actions.completeStepThree('{ invalidJsonString ');
});
await actions.completeStepThree('{ invalidJsonString ');

expect(form.getErrorsMessages()).toContain('Invalid JSON format.');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ export const formSetup = async (initTestBed: SetupFunc<TestSubjects>) => {
jsonString: settings,
}); // Using mocked EuiCodeEditor
}
});

await act(async () => {
clickNextButton();
});

Expand Down

0 comments on commit 244ce85

Please sign in to comment.