wolfenrain / fluttium

Fluttium, the user flow testing tool for Flutter

Home Page:https://fluttium.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix: text is not found in `BottomNavBar`

PrimeTimeTran opened this issue · comments

Description

Expect text doesn't work for text that's clearly visible on the screen.

Steps To Reproduce

  1. Initialized fluttium
  2. Created flow
  3. Identified text I wanted to check is visible.
  4. See error

Expected Behavior

A clear and concise description of what you expected to happen.
I expected expectVisible: Investing to result in true here because it's a button in the bottom tab navbar.
nav

I expected expectVisible: open to result in true here because it's on the screen below the chart.
fails to find open

I expected expectVisible: "Your Market Value" to result in true here because it's also on the screen.
fails to find your market value

If applicable, add screenshots to help explain your problem.

Additional Context

At a high level, the nesting of widgets is main > GoRouter with a Drawer > BottomNavBar > Scaffold.

Could you guys create a guide for nested navigators or troubleshooting?

I would gladly add code snippets but there are many more widgets nested than above if I include providers, Material Router, ResponsiveLayout, etc so not sure if it's even relevant. From my understanding the framework has no context of code and is focused on what the user can see so I feel pretty confident I shouldn't be seeing this problem.

Thanks in advance~!

I think this is related to #233 the navbar seems to ruin the Semantic lookup for Fluttium.