Skip to content

Commit 8a56517

Browse files
committed
test(material/stepper): revert updated harness files
Reverts previously changed step-harness files.
1 parent 46dd17c commit 8a56517

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/material/stepper/testing/step-harness-filters.ts

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export interface StepHarnessFilters extends BaseHarnessFilters {
1919
label?: string | RegExp;
2020
/** Only find steps with the given selected state. */
2121
selected?: boolean;
22-
/** Only find steps with the given pressed state. */
23-
pressed?: boolean;
2422
/** Only find completed steps. */
2523
completed?: boolean;
2624
/** Only find steps that have errors. */

src/material/stepper/testing/step-harness.ts

+1-15
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ export class MatStepHarness extends ContentContainerComponentHarness<string> {
3434
options.selected,
3535
async (harness, selected) => (await harness.isSelected()) === selected,
3636
)
37-
.addOption(
38-
'pressed',
39-
options.pressed,
40-
async (harness, pressed) => (await harness.isPressed()) === pressed,
41-
)
4237
.addOption(
4338
'completed',
4439
options.completed,
@@ -72,19 +67,10 @@ export class MatStepHarness extends ContentContainerComponentHarness<string> {
7267
return (await host.getAttribute('aria-selected')) === 'true';
7368
}
7469

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-
8170
/** Whether the step has been filled out. */
8271
async isCompleted(): Promise<boolean> {
8372
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()));
8874
}
8975

9076
/**

0 commit comments

Comments
 (0)