Skip to content

Commit abdc356

Browse files
Fix cy test
1 parent 8e6e296 commit abdc356

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/client/cypress/e2e/helpers/testHelpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ export const interceptApiCalls = () => {
109109
cy.intercept("dataextraction/api/V1/extract_data").as("extract-data");
110110

111111
cy.intercept("https://api3.geo.admin.ch/rest/services/height*").as("height");
112+
113+
cy.intercept("/api/v2/import*").as("borehole-upload");
112114
};
113115

114116
/**

src/client/cypress/e2e/mainPage/import.cy.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ describe("Test for importing boreholes.", () => {
4242
});
4343
});
4444

45-
// Intercept upload request
46-
cy.intercept("/api/v2/import?workgroupId=1").as("borehole-upload");
47-
4845
// Import boreholes and attachments
4946
cy.get('[data-cy="import-button"]').click();
5047
cy.wait("@borehole-upload");

0 commit comments

Comments
 (0)