Automated testing

Troubleshooting

I am currently in the initial stages of designing automated testing. After designing a few tests to trial automated testing, I found that widgets cannot be consistently located using their keys.

Could you help me understand why this issue occurs? Thank you!

What have you tried so far?

β€’ Even when selecting the widget via UI Builder, the widget is not found.

β€’ Similarly, trying to locate the widget using Testing - Key also fails.

β€’ The only method that works is Find by Text, but this alone is insufficient for comprehensive testing.

Did you check FlutterFlow's Documentation for this topic?
Yes
1