Skip to content

Commit 244ce85

Browse files
authored
[Index management] Fix test in index template wizard (#83150)
1 parent 9038e5c commit 244ce85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

x-pack/plugins/index_management/__jest__/client_integration/index_template_wizard/template_create.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,7 @@ describe('<TemplateCreate />', () => {
266266
it('should not allow invalid json', async () => {
267267
const { form, actions } = testBed;
268268

269-
await act(async () => {
270-
actions.completeStepThree('{ invalidJsonString ');
271-
});
269+
await actions.completeStepThree('{ invalidJsonString ');
272270

273271
expect(form.getErrorsMessages()).toContain('Invalid JSON format.');
274272
});

x-pack/plugins/index_management/__jest__/client_integration/index_template_wizard/template_form.helpers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ export const formSetup = async (initTestBed: SetupFunc<TestSubjects>) => {
208208
jsonString: settings,
209209
}); // Using mocked EuiCodeEditor
210210
}
211+
});
211212

213+
await act(async () => {
212214
clickNextButton();
213215
});
214216

0 commit comments

Comments
 (0)