timeout added in shared public dashboard test

This commit is contained in:
Juan Cabanas 2022-12-01 15:50:23 +01:00
parent a184e9c2a9
commit 205c295192
No known key found for this signature in database
GPG Key ID: 6ADA94D1EA2A18C4

View File

@ -170,7 +170,7 @@ describe('SharePublic', () => {
);
await renderSharePublicDashboard({ panel: mockPanel, dashboard: mockDashboard, onDismiss: () => {} });
await waitForElementToBeRemoved(screen.getAllByTestId('Spinner'));
await waitForElementToBeRemoved(screen.getAllByTestId('Spinner'), { timeout: 2000 });
expect(screen.getByTestId(selectors.WillBePublicCheckbox)).toBeDisabled();
expect(screen.getByTestId(selectors.LimitedDSCheckbox)).toBeDisabled();