You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when clicking on a Top Anime News Item in a UI Test, the following error occurs :
The following assertion was thrown while handling a gesture:
No GoRouter found in context
'package:go_router/src/router.dart':
Failed assertion: line 297 pos 12: 'inherited != null'
This is because the UI Test renders a specific page by specifying it in the home parameter of the MaterialApp.
However, MaterialApp.goRouter() has no such home field, so a starting page for the UI Test cannot be specified as above.
A way must be investigated to write GoRouter UI Tests, or abandon that idea and just test each screen as a separate entity (which might be best).
The text was updated successfully, but these errors were encountered:
Currently, when clicking on a Top Anime News Item in a UI Test, the following error occurs :
This is because the UI Test renders a specific page by specifying it in the
home
parameter of theMaterialApp
.However,
MaterialApp.goRouter()
has no suchhome
field, so a starting page for the UI Test cannot be specified as above.A way must be investigated to write GoRouter UI Tests, or abandon that idea and just test each screen as a separate entity (which might be best).
The text was updated successfully, but these errors were encountered: