mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
test: prevent flaky frontend unit test case (#13984)
* test: prevent flaky unit test case * Update superset-frontend/spec/javascripts/datasource/ChangeDatasourceModal_spec.jsx Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
@@ -84,7 +84,7 @@ describe('ChangeDatasourceModal', () => {
|
||||
});
|
||||
|
||||
it('fetches datasources', async () => {
|
||||
expect(fetchMock.calls(/api\/v1\/dataset\/\\?q*/)).toHaveLength(3);
|
||||
expect(fetchMock.calls(INFO_ENDPOINT)).toHaveLength(3);
|
||||
});
|
||||
|
||||
it('renders confirmation message', async () => {
|
||||
|
||||
Reference in New Issue
Block a user