@@ -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