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:
Yongjie Zhao
2021-04-07 20:08:04 +08:00
committed by GitHub
parent 56dc74e09f
commit e3efaba775

View File

@@ -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 () => {