[Index management] Fix test in index template wizard (#83150)

This commit is contained in:
Sébastien Loix 2020-11-11 15:51:58 +01:00 committed by GitHub
parent 9038e5c397
commit 244ce85fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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.');
});

View file

@ -208,7 +208,9 @@ export const formSetup = async (initTestBed: SetupFunc<TestSubjects>) => {
jsonString: settings,
}); // Using mocked EuiCodeEditor
}
});
await act(async () => {
clickNextButton();
});