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

[SuperEditor][SuperReader] - Can't call WidgetTester.tap() on a SuperReader due to slivers #2376

Open
matthew-carroll opened this issue Oct 15, 2024 · 1 comment
Assignees
Labels
area_super_reader Related to SuperReader area_supereditor Pertains to SuperEditor type_bug Something isn't working

Comments

@matthew-carroll
Copy link
Contributor

I tried to tap on a SuperReader in a test:

await tester.tap(find.byType(SuperReader));

This produced an error:

══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following assertion was thrown running a test:
The finder "Found 1 widget with type "SuperReader": [
  SuperReader(state: SuperReaderState#7d0cf),
]" (used in a call to "tap()") found an element whose corresponding render object is not a RenderBox
(it is a _RenderSliverHybridStack: "_RenderSliverHybridStack#7a5c0 relayoutBoundary=up30").
Unfortunately "tap()" only supports targeting widgets that correspond to RenderBox objects in the
rendering.
@matthew-carroll matthew-carroll added type_bug Something isn't working area_supereditor Pertains to SuperEditor area_super_reader Related to SuperReader labels Oct 15, 2024
@matthew-carroll
Copy link
Contributor Author

@knopp can you take a look at how we can support standard WidgetTester interactions after the integration of HybridStack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area_super_reader Related to SuperReader area_supereditor Pertains to SuperEditor type_bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants