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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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