mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04: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:
parent
56dc74e09f
commit
e3efaba775
@ -84,7 +84,7 @@ describe('ChangeDatasourceModal', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('fetches datasources', async () => {
|
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 () => {
|
it('renders confirmation message', async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user