Skip to content

MatProgressSpinner harness does not contemplate mat-spinner alias #19649

Closed
@davidlj95

Description

@davidlj95

Context

In the Angular Material documentation, it is said you can either use <mat-progress-spinner> or <mat-spinner> to place spinner components:

The progress-spinner supports two modes, "determinate" and "indeterminate". The <mat-spinner> component is an alias for <mat-progress-spinner mode="indeterminate">.

Issue

When using harnesses to test the application, there's no harness for the <mat-spinner> element and the MatProgressSpinnerHarness just includes selector for mat-progress-spinner, and not their alias mat-spinner:

static hostSelector = 'mat-progress-spinner';

Should the selector be able to match both spinners? Or maybe we're missing a MatSpinnerHarness here? 🤔

Thanks!

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/progress-spinner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions