File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,15 @@ describe('React components', () => {
15
15
describe ( 'General' , ( ) => {
16
16
describe ( 'Fill in form and view summary, paper' , ( ) => {
17
17
beforeEach ( ( ) => {
18
+ cy . intercept ( 'GET' , 'https://www.nav.no/fyllut/countries*' ) . as ( 'getCountrySelect' ) ;
18
19
cy . visit ( '/fyllut/customcomps/dineopplysninger?sub=paper' ) ;
19
20
cy . wait ( '@getConfig' ) ;
20
21
cy . wait ( '@getForm' ) ;
21
22
cy . wait ( '@getGlobalTranslations' ) ;
22
23
cy . wait ( '@getTranslations' ) ;
23
24
cy . wait ( '@getCountries' ) ;
24
25
cy . wait ( '@getCurrencies' ) ;
26
+ cy . wait ( '@getCountrySelect' ) ;
25
27
} ) ;
26
28
27
29
it ( 'reflects changes on summary page when editing data' , ( ) => {
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ Cypress.Commands.add('defaultIntercepts', () => {
83
83
cy . intercept ( 'POST' , '/amplitude/collect-auto' ) . as ( 'amplitudeLogging' ) ;
84
84
cy . intercept ( 'POST' , '/fyllut/api/log*' , { body : 'ok' } ) . as ( 'logger' ) ;
85
85
cy . intercept ( 'GET' , '/fyllut/api/config*' ) . as ( 'getConfig' ) ;
86
- cy . intercept ( 'GET' , / f y l l u t \ /a p i \ /c o u n t r i e s . * / ) . as ( 'getCountries' ) ;
86
+ cy . intercept ( 'GET' , ' /fyllut/api/countries*' ) . as ( 'getCountries' ) ;
87
87
cy . intercept ( 'GET' , '/fyllut/api/global-translations/*' ) . as ( 'getGlobalTranslations' ) ;
88
- cy . intercept ( 'GET' , / f y l l u t \ /a p i \ /c o m m o n - c o d e s \ /c u r r e n c i e s . * / ) . as ( 'getCurrencies' ) ;
88
+ cy . intercept ( 'GET' , ' /fyllut/api/common-codes/currencies*' ) . as ( 'getCurrencies' ) ;
89
89
cy . intercept ( 'GET' , '/fyllut/api/translations/*' ) . as ( 'getTranslations' ) ;
90
90
cy . intercept ( 'GET' , '/fyllut/api/forms/*' ) . as ( 'getForm' ) ;
91
91
return cy ;
You can’t perform that action at this time.
0 commit comments