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
But in angular testing, making sure to provideIonicAngular() and to import IonButton, I see the following, where the aria-label remains on the ion-button:
Unclear why, it warns that I am not in an ionic project.
I am using "@ionic/angular": "8.4.0",
[WARN] You are not in an Ionic project directory. Project context may be missing.
Ionic:
Ionic CLI : 7.2.0
Utility:
cordova-res : 0.15.4
native-run : 2.0.1
System:
NodeJS : v22.0.0
npm : 10.5.1
OS : macOS Unknown
Additional Information
This is not a problem on the main branch, using Angular 18 and not using standalone components
The text was updated successfully, but these errors were encountered:
AmitMY
changed the title
bug: ionic angular standalone - button aria-label works in app but not in testing
bug: (regression) ionic angular standalone - button aria-label works in app but not in testing
Nov 29, 2024
AmitMY
changed the title
bug: (regression) ionic angular standalone - button aria-label works in app but not in testing
bug: (regression) ionic angular standalone - button aria-label works in app but not in testing (icon-only)
Dec 5, 2024
Prerequisites
Ionic Framework Version
v8.x
Current Behavior
I migrated from ionic angular to standalone version.
Here is some code in my app:
When I run the app, the
outerHTML
of theion-button
is the following, where thearia-label
is delegated to thebutton
element:But in angular testing, making sure to
provideIonicAngular()
and to importIonButton
, I see the following, where thearia-label
remains on theion-button
:Expected Behavior
in test time, the
ion-aria
should move to the button.Steps to Reproduce
Unfortunately, this only happens during tests.
Here's my PR: sign/translate#177
git clone https://github.com/sign/translate.git cd translate git fetch origin/angular19 git checkout 146b51d1cb6ccd4232ac838e612727a75df95415 npm install npm run test:chrome
Code Reproduction URL
sign/translate#177
Ionic Info
Unclear why, it warns that I am not in an ionic project.
I am using "@ionic/angular": "8.4.0",
Additional Information
This is not a problem on the main branch, using Angular 18 and not using standalone components
The text was updated successfully, but these errors were encountered: