You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which successfully set a unique one locator per layout (I set some custom viewports to check and saw the mobile one successfully applied).
However, when I removed the .first() from the element interactions in the test file I saw that Cypress would still find two of the select-multiproxy-desktop locators and I wasn't sure how to proceed.
I checked and I'm certain that the issue was because of the dektop/mobile one. The mobile is hidden, but present in the DOM. I didn't use the exact same logic as you did, it's something a little simpler, since we have the info directly from the props depending on where this multiproxy selector is called.
At the moment we have to use .first when trying to interact with the multiproxySelector element eg:
topMenuItems.multiproxySelector().should('be.visible').first().click()
This is because two elements with that locator can be found in the DOM (the desktop and mobile one).
Let's give them unique names and update tests to get rid of the
.first
The text was updated successfully, but these errors were encountered: