@@ -29,7 +29,7 @@ describe('App navigation', () => {
2929 cy . dataCy ( 'btn-previous' )
3030 . should ( 'be.visible' )
3131 } )
32- cy . url ( ) . should ( 'include' , '/finish-minimum ' )
32+ cy . url ( ) . should ( 'include' , '/finish' )
3333 cy . dataCy ( 'btn-next' )
3434 . should ( 'not.be.visible' )
3535 Array . from ( basicStepNames ) . reverse ( ) . forEach ( ( step ) => {
@@ -44,7 +44,7 @@ describe('App navigation', () => {
4444 . should ( 'not.be.visible' )
4545 } )
4646 it ( 'should be navigable through the stepper' , ( ) => {
47- [ 'finish-minimum ' , ...basicStepNames , ...[ ...basicStepNames ] . reverse ( ) ] . forEach ( ( step ) => {
47+ [ 'finish' , ...basicStepNames , ...[ ...basicStepNames ] . reverse ( ) ] . forEach ( ( step ) => {
4848 cy . visit ( step === 'start' ? '/authors' : `/${ step } ` )
4949 cy . dataCy ( `step-${ step } ` )
5050 . click ( )
@@ -62,7 +62,7 @@ describe('App navigation', () => {
6262 cy . visit ( '/authors' )
6363 cy . dataCy ( 'btn-add-author' )
6464 . click ( )
65- cy . visit ( '/finish-minimum ' )
65+ cy . visit ( '/finish' )
6666 cy . dataCy ( 'btn-add-more' )
6767 . click ( )
6868 } )
@@ -82,7 +82,7 @@ describe('App navigation', () => {
8282 cy . dataCy ( 'btn-previous' )
8383 . should ( 'be.visible' )
8484 } )
85- cy . url ( ) . should ( 'include' , '/finish-advanced ' )
85+ cy . url ( ) . should ( 'include' , '/finish' )
8686 cy . dataCy ( 'btn-next' )
8787 . should ( 'not.be.visible' )
8888 Array . from ( allStepNames ) . reverse ( ) . forEach ( ( step ) => {
@@ -97,7 +97,7 @@ describe('App navigation', () => {
9797 . should ( 'not.be.visible' )
9898 } )
9999 it ( 'should be navigable through the stepper' , ( ) => {
100- [ 'finish-advanced ' , ...allStepNames , ...[ ...allStepNames ] . reverse ( ) ] . forEach ( ( step ) => {
100+ [ 'finish' , ...allStepNames , ...[ ...allStepNames ] . reverse ( ) ] . forEach ( ( step ) => {
101101 cy . visit ( step === 'start' ? '/authors' : `/${ step } ` )
102102 cy . dataCy ( `step-${ step } ` )
103103 . click ( )
@@ -106,7 +106,7 @@ describe('App navigation', () => {
106106 } )
107107 } )
108108 describe ( 'if there are no errors' , ( ) => {
109- it ( 'should jump from step to finish-advanced when finish is clicked' , ( ) => {
109+ it ( 'should jump from step to finish when finish is clicked' , ( ) => {
110110 allStepNames . forEach ( ( step ) => {
111111 cy . visit ( `/${ step } ` )
112112 // The next test is just to make sure the page loaded without using cy.wait
@@ -115,7 +115,7 @@ describe('App navigation', () => {
115115 . should ( 'be.visible' )
116116 . click ( )
117117 cy . url ( )
118- . should ( 'contain' , '/finish-advanced ' )
118+ . should ( 'contain' , '/finish' )
119119 } )
120120 } )
121121 } )
@@ -153,8 +153,8 @@ describe('App navigation', () => {
153153 }
154154 } )
155155 } )
156- it ( `should have ${ basicStepNames . length + 1 } steps, visible previous, hidden next/finish for step finish-minimum ` , ( ) => {
157- cy . visit ( '/finish-minimum ' )
156+ it ( `should have ${ basicStepNames . length + 1 } steps, visible previous, hidden next/finish for step finish` , ( ) => {
157+ cy . visit ( '/finish' )
158158 cy . get ( '.q-stepper__tab' )
159159 . should ( 'have.length' , basicStepNames . length + 1 )
160160 cy . dataCy ( 'btn-finish' )
@@ -164,17 +164,6 @@ describe('App navigation', () => {
164164 cy . dataCy ( 'btn-previous' )
165165 . should ( 'be.visible' )
166166 } )
167- it ( `should have ${ advancedStepNames . length + 1 } steps, visible previous, hidden next/finish for step finish-advanced` , ( ) => {
168- cy . visit ( '/finish-advanced' )
169- cy . get ( '.q-stepper__tab' )
170- . should ( 'have.length' , allStepNames . length + 1 )
171- cy . dataCy ( 'btn-finish' )
172- . should ( 'not.be.visible' )
173- cy . dataCy ( 'btn-next' )
174- . should ( 'not.be.visible' )
175- cy . dataCy ( 'btn-previous' )
176- . should ( 'be.visible' )
177- } )
178167 } )
179168
180169 describe ( 'On the screen Authors' , ( ) => {
0 commit comments