-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(progress-spinner/testing): harness selector not matching mat-spinner selector #19657
fix(progress-spinner/testing): harness selector not matching mat-spinner selector #19657
Conversation
…ner selector The progress spinner has two variations: `mat-progress-spinner` and `mat-spinner`, but the test harness was only accounting for the former. Fixes angular#19649.
@@ -14,7 +14,7 @@ import {ProgressSpinnerHarnessFilters} from './progress-spinner-harness-filters' | |||
/** Harness for interacting with a standard mat-progress-spinner in tests. */ | |||
export class MatProgressSpinnerHarness extends ComponentHarness { | |||
/** The selector for the host element of a `MatProgressSpinner` instance. */ | |||
static hostSelector = 'mat-progress-spinner'; | |||
static hostSelector = 'mat-progress-spinner,mat-spinner'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure about that, but I've seen in other harnesses they use an array of selectors when more than one is needed here 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the other places have an array and they join
it into a comma-separated string so the result should be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right! thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The progress spinner has two variations:
mat-progress-spinner
andmat-spinner
, but the test harness was only accounting for the former.Fixes #19649.