TRIAL: timeout for loading spinner

This commit is contained in:
Greg Thompson 2022-08-17 14:46:29 -05:00
parent 4e09bdfd31
commit 3976bc42d1
No known key found for this signature in database
GPG key ID: ED1F695C1077B958

View file

@ -120,6 +120,8 @@ describe('CopyToSpaceFlyout', () => {
expect(wrapper.find(EuiEmptyPrompt)).toHaveLength(0);
expect(wrapper.find(EuiLoadingSpinner)).toHaveLength(1);
// Wait for loading spinner to clear
await act(async () => {});
wrapper.update();
expect(wrapper.find(CopyToSpaceForm)).toHaveLength(1);