@@ -207,9 +207,9 @@ describe('Mellomlagring', () => {
207
207
cy . wait ( '@getMellomlagringValid' ) ;
208
208
cy . findByRole ( 'heading' , { name : TEXTS . statiske . summaryPage . title } ) . should ( 'exist' ) ;
209
209
cy . findByText ( 'Ønsker du å få gaven innpakket' ) . should ( 'exist' ) ;
210
- cy . findByRole ( 'button' , { name : TEXTS . grensesnitt . navigation . saveAndContinue } ) . should ( 'exist' ) . click ( ) ;
210
+ cy . clickSaveAndContinue ( ) ;
211
211
cy . wait ( '@submitMellomlagring' ) ;
212
- cy . url ( ) . should ( 'not.include' , 'testmellomlagring' ) . should ( 'include' , '/send-inn-frontend' ) ;
212
+ cy . verifySendInnRedirect ( ) ;
213
213
} ) ;
214
214
215
215
it ( 'retrieves mellomlagring and lets you navigate to first empty panel' , ( ) => {
@@ -248,7 +248,7 @@ describe('Mellomlagring', () => {
248
248
. should ( 'exist' )
249
249
. within ( ( ) => {
250
250
cy . get ( 'a' ) . should ( 'have.length' , 2 ) ;
251
- cy . findByRole ( 'link' , { name : 'Du må fylle ut: Farge' } ) . should ( 'exist' ) . click ( ) ;
251
+ cy . findByRole ( 'link' , { name : 'Du må fylle ut: Farge' } ) . should ( 'exist' ) . click ( { force : true } ) ;
252
252
} ) ;
253
253
254
254
cy . findByRole ( 'group' , { name : 'Farge' } )
@@ -262,7 +262,7 @@ describe('Mellomlagring', () => {
262
262
. should ( 'exist' )
263
263
. within ( ( ) => {
264
264
cy . get ( 'a' ) . should ( 'have.length' , 1 ) ;
265
- cy . findByRole ( 'link' , { name : 'Du må fylle ut: Tekst på kortet' } ) . should ( 'exist' ) . click ( ) ;
265
+ cy . findByRole ( 'link' , { name : 'Du må fylle ut: Tekst på kortet' } ) . should ( 'exist' ) . click ( { force : true } ) ;
266
266
} ) ;
267
267
cy . findByLabelText ( 'Tekst på kortet' ) . should ( 'have.focus' ) . type ( 'Takk for hjelpen!' ) ;
268
268
@@ -336,7 +336,7 @@ describe('Mellomlagring', () => {
336
336
cy . wait ( '@getMellomlagringValid' ) ;
337
337
cy . findByRole ( 'heading' , { name : TEXTS . statiske . summaryPage . title } ) . should ( 'exist' ) ;
338
338
cy . findByText ( 'Ønsker du å få gaven innpakket' ) . should ( 'exist' ) ;
339
- cy . findByRole ( 'button' , { name : TEXTS . grensesnitt . navigation . saveAndContinue } ) . click ( ) ;
339
+ cy . clickSaveAndContinue ( ) ;
340
340
cy . wait ( '@submitMellomlagring' ) ;
341
341
} ) ;
342
342
} ) ;
0 commit comments