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() {
onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<dynamic>(
builder: (BuildContext context) {
return RaisedButton(
return ElevatedButton(
onPressed: () {
Navigator.of(context).push<void>(
PageRouteBuilder<void>(
......@@ -702,7 +702,7 @@ void main() {
);
// Open the new route.
await tester.tap(find.byType(RaisedButton));
await tester.tap(find.byType(ElevatedButton));
await tester.pumpAndSettle();
expect(find.text('Open page'), findsNothing);
expect(find.text('Page Two'), findsOneWidget);
......@@ -731,7 +731,7 @@ void main() {
onGenerateRoute: (RouteSettings settings) {
return MaterialPageRoute<dynamic>(
builder: (BuildContext context) {
return RaisedButton(
return ElevatedButton(
onPressed: () {
Navigator.of(context).push<void>(
PageRouteBuilder<void>(
......@@ -752,7 +752,7 @@ void main() {
);
// Open the new route.
await tester.tap(find.byType(RaisedButton));
await tester.tap(find.byType(ElevatedButton));
await tester.pumpAndSettle();
expect(find.text('Open page'), findsNothing);
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