-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: buttons can't be clicked by role in Playwright in 7.4.1 #28241
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
Comments
Thanks for the issue! This issue has been labeled as Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue. For a guide on how to create a good reproduction, see our Contributing Guide. |
I'm working on a reproduction, but I'm having a little trouble slimming down my app so it might take a bit. Here's what I've found: In 7.4.1, So it appears that this issue is a follow-up to #28183. |
More info: Still working on the reproduction, but it appears that all my problems are related to |
Hey there! I'm not able to reproduce this on my end, so I'm going to close this for now. However, if you are able to create a minimal reproduction feel free to reply here and I can take a look. Thanks! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
v7.x
Current Behavior
I use Playwright to test my Ionic React app. I click
ion-button
usinglocator.getByRole('button', { name: label })
andlocator.getByRole('link', { name: label })
. This works in 7.4.0 (and previous versions-- I tried 7.3.0, 7.2.0), but not 7.4.1.In 7.4.1, I get an error:
Error: no locator visible before timeout Locator@ion-router-outlet div.ion-page:not(.ion-page-hidden) >> internal:role=button[name="Confirm email address"i],Locator@ion-router-outlet div.ion-page:not(.ion-page-hidden) >> internal:role=link[name="Confirm email address"i]
Expected Behavior
I expect to be able to use Playwright to click
ion-button
reliably.Steps to Reproduce
Here are the complete functions I use to click
ion-button
with Playwright:Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 7.1.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 7.4.1
Capacitor:
Capacitor CLI : 5.4.1
@capacitor/android : 5.4.1
@capacitor/core : 5.4.1
@capacitor/ios : 5.4.1
Utility:
cordova-res : 0.15.4
native-run : 1.7.3
System:
NodeJS : v20.7.0 (/opt/homebrew/Cellar/node/20.7.0/bin/node)
npm : 10.1.0
OS : macOS Unknown
Additional Information
No response
The text was updated successfully, but these errors were encountered: