mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Index management] Fix test in index template wizard (#83150)
This commit is contained in:
parent
9038e5c397
commit
244ce85fb4
2 changed files with 3 additions and 3 deletions
|
@ -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.');
|
||||
});
|
||||
|
|
|
@ -208,7 +208,9 @@ export const formSetup = async (initTestBed: SetupFunc<TestSubjects>) => {
|
|||
jsonString: settings,
|
||||
}); // Using mocked EuiCodeEditor
|
||||
}
|
||||
});
|
||||
|
||||
await act(async () => {
|
||||
clickNextButton();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue