Skip to content

Commit 98d2dc6

Browse files
committed
fix: integration test
1 parent ab7734d commit 98d2dc6

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

compose/neurosynth-frontend/cypress/e2e/workflows/ingestion/Ingestion.cy.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ describe('Ingestion', () => {
66
beforeEach(() => {
77
cy.clearLocalStorage();
88
cy.intercept('GET', 'https://api.appzi.io/**', { fixture: 'appzi' }).as('appziFixture');
9-
cy.intercept('GET', `**/api/meta-analyses*`, { fixture: 'metaAnalyses' }).as(
10-
'metaAnalysesFixture'
11-
);
9+
cy.intercept('GET', `**/api/meta-analyses*`, { fixture: 'metaAnalyses' }).as('metaAnalysesFixture');
1210

13-
cy.intercept('POST', `https://www.google-analytics.com/*/**`, {}).as(
14-
'googleAnalyticsFixture'
15-
);
11+
cy.intercept('POST', `https://www.google-analytics.com/*/**`, {}).as('googleAnalyticsFixture');
1612

1713
cy.intercept('GET', `**/api/projects/*`, {
1814
fixture: 'IngestionFixtures/projectFixture',
@@ -48,9 +44,7 @@ describe('Ingestion', () => {
4844

4945
it('should show the dialog', () => {
5046
cy.login('mocked').visit(PATH);
51-
cy.contains('button', 'go to extraction').click();
52-
53-
cy.contains('button', 'extraction: get started').click();
47+
cy.contains('button', 'go to extraction').click(); // popup should open automatically as extraction has not been initialized in this mock
5448
cy.contains('button', 'NEXT').click();
5549

5650
cy.get('@baseStudiesFixture').its('request.body').should('not.have.a.property', 'doi');

0 commit comments

Comments
 (0)