Unverified Commit 63381814 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Remove old button references from routes_test (#63013)

parent b631013a
...@@ -682,7 +682,7 @@ void main() { ...@@ -682,7 +682,7 @@ void main() {
onGenerateRoute: (RouteSettings settings) { onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<dynamic>( return MaterialPageRoute<dynamic>(
builder: (BuildContext context) { builder: (BuildContext context) {
return RaisedButton( return ElevatedButton(
onPressed: () { onPressed: () {
Navigator.of(context).push<void>( Navigator.of(context).push<void>(
PageRouteBuilder<void>( PageRouteBuilder<void>(
...@@ -702,7 +702,7 @@ void main() { ...@@ -702,7 +702,7 @@ void main() {
); );
// Open the new route. // Open the new route.
await tester.tap(find.byType(RaisedButton)); await tester.tap(find.byType(ElevatedButton));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
expect(find.text('Open page'), findsNothing); expect(find.text('Open page'), findsNothing);
expect(find.text('Page Two'), findsOneWidget); expect(find.text('Page Two'), findsOneWidget);
...@@ -731,7 +731,7 @@ void main() { ...@@ -731,7 +731,7 @@ void main() {
onGenerateRoute: (RouteSettings settings) { onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<dynamic>( return MaterialPageRoute<dynamic>(
builder: (BuildContext context) { builder: (BuildContext context) {
return RaisedButton( return ElevatedButton(
onPressed: () { onPressed: () {
Navigator.of(context).push<void>( Navigator.of(context).push<void>(
PageRouteBuilder<void>( PageRouteBuilder<void>(
...@@ -752,7 +752,7 @@ void main() { ...@@ -752,7 +752,7 @@ void main() {
); );
// Open the new route. // Open the new route.
await tester.tap(find.byType(RaisedButton)); await tester.tap(find.byType(ElevatedButton));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
expect(find.text('Open page'), findsNothing); expect(find.text('Open page'), findsNothing);
expect(find.text('Page Two'), findsOneWidget); expect(find.text('Page Two'), findsOneWidget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment