@@ -92,19 +92,11 @@ describe('MatStepperHarness', () => {
9292 const stepper = await loader . getHarness ( MatStepperHarness . with ( { selector : '#two-stepper' } ) ) ;
9393 const steps = await stepper . getSteps ( ) ;
9494
95- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
96- true ,
97- false ,
98- false ,
99- ] ) ;
95+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ true , false , false ] ) ;
10096
10197 await stepper . selectStep ( { label : 'Three' } ) ;
10298
103- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
104- false ,
105- false ,
106- true ,
107- ] ) ;
99+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ false , false , true ] ) ;
108100 } ) ;
109101
110102 it ( 'should be able to get the text-based label of a step' , async ( ) => {
@@ -167,11 +159,7 @@ describe('MatStepperHarness', () => {
167159 const stepper = await loader . getHarness ( MatStepperHarness . with ( { selector : '#two-stepper' } ) ) ;
168160 const steps = await stepper . getSteps ( ) ;
169161
170- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
171- true ,
172- false ,
173- false ,
174- ] ) ;
162+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ true , false , false ] ) ;
175163 } ) ;
176164
177165 it ( 'should be able to select a step in a vertical stepper' , async ( ) => {
@@ -199,19 +187,11 @@ describe('MatStepperHarness', () => {
199187 const stepper = await loader . getHarness ( MatStepperHarness . with ( { selector : '#two-stepper' } ) ) ;
200188 const steps = await stepper . getSteps ( ) ;
201189
202- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
203- true ,
204- false ,
205- false ,
206- ] ) ;
190+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ true , false , false ] ) ;
207191
208192 await steps [ 2 ] . select ( ) ;
209193
210- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
211- false ,
212- false ,
213- true ,
214- ] ) ;
194+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ false , false , true ] ) ;
215195 } ) ;
216196
217197 it ( 'should get whether a step is optional' , async ( ) => {
@@ -265,19 +245,11 @@ describe('MatStepperHarness', () => {
265245
266246 await secondStep . select ( ) ;
267247
268- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
269- false ,
270- true ,
271- false ,
272- ] ) ;
248+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ false , true , false ] ) ;
273249
274250 await nextButton . click ( ) ;
275251
276- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
277- false ,
278- false ,
279- true ,
280- ] ) ;
252+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ false , false , true ] ) ;
281253 } ) ;
282254
283255 it ( 'should go backward when pressing the previous button of a vertical stepper' , async ( ) => {
@@ -313,19 +285,11 @@ describe('MatStepperHarness', () => {
313285
314286 await secondStep . select ( ) ;
315287
316- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
317- false ,
318- true ,
319- false ,
320- ] ) ;
288+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ false , true , false ] ) ;
321289
322290 await previousButton . click ( ) ;
323291
324- expect ( await parallel ( ( ) => steps . map ( step => step . isExpanded ( ) ) ) ) . toEqual ( [
325- true ,
326- false ,
327- false ,
328- ] ) ;
292+ expect ( await parallel ( ( ) => steps . map ( step => step . isPressed ( ) ) ) ) . toEqual ( [ true , false , false ] ) ;
329293 } ) ;
330294
331295 it ( 'should get whether a step has errors' , async ( ) => {
0 commit comments