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 Inside ListView - Column or Row

hifiaz opened this issue · comments

commented

Description

when i put text inside column and wrap listview text not found also happen when change column to row

Steps To Reproduce

ListView(
        children: [
          Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              const Text(
                'You have pushed the button this many times:',
              ),
              Text(
                'counter',
                style: Theme.of(context).textTheme.headlineMedium,
              ),
            ],
          ),
        ],
      )
description: My first Fluttium flow.
---
- expectVisible: 'You have pushed the button this many times:'
- expectVisible: 'counter'

Expected Behavior

You have pushed the button this many times: and counter must be pass or found

Screenshots

Screenshot 2023-04-07 at 19 10 46

Also encountered this 🙋‍♂️

Thanks for opening this issue, I'll look into it next week to see what exactly is going on with the semantic tree!

Variating inside a ListView with Wrap, Flex, Row or Collumn, gives the same result, not identifiable element in fluttium.
All are related to MultiChildRenderObjectWidget.

just for notice, it may be related to the semantics tree, and it worked in my case to add a Semantics Widget above these elements and add to it a label summarizing what it was supposed to find inside.

@wolfenrain curious about the prioritization of this. We're evaluating fluttium and this seems to be a pretty big blocker, but maybe there's a semi-simple workaround? I tried fiddling with Semantics as @Caio-Rezende suggested but it didn't do the trick in our case.

@wolfenrain curious about the prioritization of this. We're evaluating fluttium and this seems to be a pretty big blocker, but maybe there's a semi-simple workaround? I tried fiddling with Semantics as @Caio-Rezende suggested but it didn't do the trick in our case.

I never reported my findings here, so thanks for resurfacing it! So it seems that both the column and row widgets don't expose their child semantics correctly in a few cases, or Fluttium doesn't find them correctly.

In theory it should work with the semantics wrapping but if it is indeed a lookup/expose problem then it will be a blocker either way.

I'll prioritize this issue for the next few days because it is quite annoying 😅

@PiotrFLEURY shared some information regarding a similar problem here: #308 (comment)

This might be also what's going on with the columns and rows. Just sharing here for completion sake