-
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
bug with testing MatSelect using getHarness and getOptions #19075
Closed
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
Can you post what your test and test component look like? |
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Apr 19, 2020
… page at the same time Fixes the test harness always retrieving the options for the first select when there are multiple selects on the page. Fixes angular#19075.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Apr 19, 2020
… page at the same time Fixes the test harness always retrieving the options for the first select when there are multiple selects on the page. Fixes angular#19075.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Apr 19, 2020
… page at the same time Fixes the test harness always retrieving the options for the first select when there are multiple selects on the page. Fixes angular#19075.
soro-google
pushed a commit
to soro-google/components
that referenced
this issue
Apr 24, 2020
… page at the same time (angular#19112) Fixes the test harness always retrieving the options for the first select when there are multiple selects on the page. Fixes angular#19075.
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Reproduction
Steps to reproduce:
When I have multiple matSelect elements on page, I use getHarness() method with an appropriate selector to get the required harness. When I use the getValueText() method on the grabbed harness, I get the expected value. However if I then use the getOptions method on this harness, I get the options from the very first matSelect element on the page and not the options from the matSelect harness I got using the selector.
Expected Behavior
Get the correct options from the MatSelectHarness grabbed using a selector.
Actual Behavior
I get the options from the very first matSelect element on page and not the options from the matSelect harness I got using the selector.
Environment
The text was updated successfully, but these errors were encountered: