-
-
Notifications
You must be signed in to change notification settings - Fork 10
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: NavigationBar
items are not found by Fluttium
#233
Comments
Hmm interesting, I will have to look into how that Widget sets up the semantics values then. Fluttium is already checking the label semantic 🤔 |
NavigationBar
items are not found by Fluttium
@Thithip @wolfenrain I had a similar issue except for tapping the |
Hey, thank you @matthiasn !! This is a great workaround ! Maybe this should work without adding a |
Indeed I would also expect it to work without the semantic widget, I'll have to take a look at the resulting semantics tree to see what values are being set within the PS: Sorry for the late reply |
Can you provide me some hints to look into the resulting semantics tree, I would help you with this (at minimum, I want to understand how to find more clues of this issue)? This is through the DevTools utility? PS: No worries, this is not urgent. Please take care of you 😉 |
@wolfenrain @Thithip I had the same issue.Acions ate not working on destinations of the flutter I had also tried to wrap icon with |
Not sure why, but I've discovered there are cases where setting the label property of Semantics does not work, but hint or tooltip do work. Might be helpful to someone |
Also if you go to MaterialApp and set showSemanticsDebugger to true, it's really helpful for seeing what the Semantic makeup of your widget tree is |
Description
Fluttium don't find semantics from nether
NavigationBar
norBottomNavigationBar
items. I'm not able to perform actions likeexpectVisible
orpressOn
for items in the NavigationBar.Steps To Reproduce
Please consider this minimal example to reproduce:
main.dart
file (with NavigationBar as bottomNavigationBar widget for the Scaffold)main.dart
file (with BottomNavigationBar as bottomNavigationBar widget for the Scaffold)flows/navbar_semantics_flow.yaml
Fluttium flow flie:Command line to reproduce:
fluttium test flows/navbar_semantics_flow.yaml
Expected Behavior
Fluttium actions like
expectVisible
orpressOn
should be able to perform on NavigationBar items.Screenshots
App:
Fluttium prompt:
The text was updated successfully, but these errors were encountered: