Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions web/regression/javascript/SchemaView/SchemaDialogView.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ describe('SchemaView', ()=>{
});

it('change text', async ()=>{
// Wait for autofocus timer (200ms in FormView) to complete
await act(async ()=>{
await new Promise(resolve => setTimeout(resolve, 500));
});
await user.type(ctrl.container.querySelector('[name="field2"]'), '2');
/* Error should come for field1 as it is empty and noEmpty true */
expect(ctrl.container.querySelector('[data-test="notifier-message"]')).toHaveTextContent('\'Field1\' cannot be empty.');
Expand Down
Loading