mirror of
https://github.com/apache/superset.git
synced 2026-04-07 10:31:50 +00:00
committed by
GitHub
parent
20503f92ae
commit
22d52eadb2
@@ -39,6 +39,7 @@ const datasource = mockDatasource['7__table'];
|
||||
|
||||
const SAVE_ENDPOINT = 'glob:*/api/v1/dataset/7';
|
||||
const SAVE_PAYLOAD = { new: 'data' };
|
||||
const SAVE_DATASOURCE_ENDPOINT = 'glob:*/datasource/save/';
|
||||
|
||||
const mockedProps = {
|
||||
datasource,
|
||||
@@ -94,6 +95,7 @@ describe('DatasourceModal', () => {
|
||||
|
||||
it('saves on confirm', async () => {
|
||||
const callsP = fetchMock.post(SAVE_ENDPOINT, SAVE_PAYLOAD);
|
||||
fetchMock.post(SAVE_DATASOURCE_ENDPOINT, {});
|
||||
act(() => {
|
||||
wrapper
|
||||
.find('button[data-test="datasource-modal-save"]')
|
||||
|
||||
Reference in New Issue
Block a user