auto_route_library
auto_route_library copied to clipboard
Testcases for Bottom Navigation Bar that uses AutoRouterScaffold
I'm getting this error when I tried to write testcase for Bottom Navigation bar that uses AutoRouterScaffold
"RouteData operation requested with a context that does not include an RouteData. The context used to retrieve the RouteData must be that of a widget that is a descendant of a AutoRoutePage."
I have mocked StackRouter and PageRouteInfo but no luck.
@Milad-Akarie
@BrindhaEaswaramurthy the test page does not seem to get wrapped with RouteDataScope widget. show some code?
hi @Milad-Akarie, can you write a code for widget testing AutoTabRouter, when I've tried to test then error occurs.
like: "RouteData operation requested with a context that does not include an RouteData. The context used to retrieve the RouteData must be that of a widget that is a descendant of a AutoRoutePage."
can you please help me fix it or give me an example of AutoTabsRouter widget testing?
I also add a new issue please help me to solve it. https://github.com/Milad-Akarie/auto_route_library/issues/1821