Skip to content
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

Expose widgets for automation testing #1874

Open
amin-nas opened this issue Feb 17, 2025 · 1 comment
Open

Expose widgets for automation testing #1874

amin-nas opened this issue Feb 17, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@amin-nas
Copy link
Contributor

Enable app developers to write automate tests by accessing Ensemble widgets.

example test

  final Finder textLoginFailedFind = find.byKey(
      ValueKey(IntegrationTestKeys.loginScreenKeyUtils.key_error_popup_text));
@amin-nas amin-nas added the enhancement New feature or request label Feb 17, 2025
@TheNoumanDev
Copy link
Member

Implementation Strategy

  • Leverage existing testId property in Ensemble widgets or add new property name Key
  • Wrap returned widget with KeyedSubtree, using testId as its key as we doing it for visible property.

Tentative working example

LoginScreen:
  body:
    TextInput:
      testId: username_input
final usernameInput = find.byKey(ValueKey('username_input'));

Estimated time: Would take easily 1-2 days with proper testing with above appraoch.
CC: @amin-nas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants