File tree 2 files changed +1
-17
lines changed
src/material/stepper/testing
2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ export interface StepHarnessFilters extends BaseHarnessFilters {
19
19
label ?: string | RegExp ;
20
20
/** Only find steps with the given selected state. */
21
21
selected ?: boolean ;
22
- /** Only find steps with the given pressed state. */
23
- pressed ?: boolean ;
24
22
/** Only find completed steps. */
25
23
completed ?: boolean ;
26
24
/** Only find steps that have errors. */
Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ export class MatStepHarness extends ContentContainerComponentHarness<string> {
34
34
options . selected ,
35
35
async ( harness , selected ) => ( await harness . isSelected ( ) ) === selected ,
36
36
)
37
- . addOption (
38
- 'pressed' ,
39
- options . pressed ,
40
- async ( harness , pressed ) => ( await harness . isPressed ( ) ) === pressed ,
41
- )
42
37
. addOption (
43
38
'completed' ,
44
39
options . completed ,
@@ -72,19 +67,10 @@ export class MatStepHarness extends ContentContainerComponentHarness<string> {
72
67
return ( await host . getAttribute ( 'aria-selected' ) ) === 'true' ;
73
68
}
74
69
75
- /** Whether the step is selected. */
76
- async isPressed ( ) : Promise < boolean > {
77
- const host = await this . host ( ) ;
78
- return ( await host . getAttribute ( 'aria-pressed' ) ) === 'true' ;
79
- }
80
-
81
70
/** Whether the step has been filled out. */
82
71
async isCompleted ( ) : Promise < boolean > {
83
72
const state = await this . _getIconState ( ) ;
84
- return (
85
- state === 'done' ||
86
- ( state === 'edit' && ! ( ( await this . isSelected ( ) ) || ( await this . isPressed ( ) ) ) )
87
- ) ;
73
+ return state === 'done' || ( state === 'edit' && ! ( await this . isSelected ( ) ) ) ;
88
74
}
89
75
90
76
/**
You can’t perform that action at this time.
0 commit comments