Volodymyr Buberenko

Fix issues with offUntil test routes

@@ -227,8 +227,9 @@ void main() { @@ -227,8 +227,9 @@ void main() {
227 testWidgets( 227 testWidgets(
228 "Get.offUntil removes previous routes if they don't match predicate", 228 "Get.offUntil removes previous routes if they don't match predicate",
229 (tester) async { 229 (tester) async {
230 - await tester.pumpWidget(Wrapper(child: FirstScreen())); 230 + await tester.pumpWidget(Wrapper(child: Container()));
231 231
  232 + Get.to(FirstScreen());
232 Get.to(SecondScreen()); 233 Get.to(SecondScreen());
233 Get.offUntil(GetPageRoute(page: () => ThirdScreen()), 234 Get.offUntil(GetPageRoute(page: () => ThirdScreen()),
234 (route) => (route as GetPageRoute).routeName == '/FirstScreen'); 235 (route) => (route as GetPageRoute).routeName == '/FirstScreen');