@@ -89,12 +89,8 @@ describe('Stepper.vue', () => {
8989 expect ( steps . at ( 0 ) . classes ( 'completed' ) ) . toBe ( true ) ;
9090 expect ( wrapper . find ( '.active' ) . classes ( 'DD' ) ) . toBe ( true ) ;
9191 } ) ;
92- it ( 'choosing No sets 7 steps visible: AL, FS, BY, NC, ND, SA and AttributionDetails, opens BY' , ( ) => {
93- setStepSelected ( wrapper , 'FS' , false ) ;
94- wrapper
95- . find ( 'stepnavigation-stub' )
96- . vm . $emit ( 'navigate' , { direction : 'next' , name : 'FS' } ) ;
97- Vue . nextTick ( ) ;
92+ it ( 'choosing No sets 7 steps visible: AL, FS, BY, NC, ND, SA and AttributionDetails, opens BY' , async ( ) => {
93+ await advanceStep ( wrapper , { FS : false } ) ;
9894 const steps = wrapper . findAll ( '.step-container' ) ;
9995 expect ( steps . length ) . toEqual ( 7 ) ;
10096 expect ( wrapper . vm . activeStepId ) . toEqual ( 1 ) ;
@@ -103,12 +99,10 @@ describe('Stepper.vue', () => {
10399
104100 describe ( 'DropdownStep interactions' , ( ) => {
105101 beforeEach ( async ( ) => {
106- // setUp()
107102 await advanceStep ( wrapper , { FS : true } ) ;
108103 } ) ;
109104 it ( 'selecting CC0 makes 4 steps visible and opens Copyright Waiver step' , async ( ) => {
110- const shortName = 'CC0 1.0' ;
111- await advanceStep ( wrapper , { DD : [ true , shortName ] } ) ;
105+ await advanceStep ( wrapper , { DD : [ true , 'CC0 1.0' ] } ) ;
112106 const steps = wrapper . findAll ( '.step-container' ) ;
113107 expect ( steps . length ) . toEqual ( 4 ) ;
114108 expect ( wrapper . find ( '.active' ) . classes ( ) ) . toContain ( 'CW' ) ;
0 commit comments