|
3 | 3 | // BSD-style license that can be found in the LICENSE file.
|
4 | 4 |
|
5 | 5 | import 'package:firebase_auth/firebase_auth.dart';
|
| 6 | +import 'package:firebase_ui_auth/firebase_ui_auth.dart'; |
6 | 7 | import 'package:firebase_ui_localizations/firebase_ui_localizations.dart';
|
7 | 8 | import 'package:flutter/material.dart';
|
8 | 9 | import 'package:flutter_test/flutter_test.dart';
|
9 |
| -import 'package:firebase_ui_auth/firebase_ui_auth.dart'; |
10 | 10 |
|
11 | 11 | import '../test_utils.dart';
|
12 | 12 |
|
@@ -45,23 +45,25 @@ void main() {
|
45 | 45 | /// If EmailLinkSignInView is pushed from another view, there
|
46 | 46 | /// should be a button allowing a user to go back.
|
47 | 47 | testWidgets('show go back option if not root', (tester) async {
|
48 |
| - await tester.pumpWidget(TestMaterialApp( |
| 48 | + await tester.pumpWidget( |
| 49 | + TestMaterialApp( |
49 | 50 | child: Builder(
|
50 |
| - builder: (context) => TextButton( |
51 |
| - child: const Text("Push"), |
52 |
| - onPressed: () => Navigator.push( |
53 |
| - context, |
54 |
| - MaterialPageRoute( |
55 |
| - builder: (context) => Scaffold( |
56 |
| - body: EmailLinkSignInView( |
57 |
| - provider: emailLinkProvider, auth: auth), |
58 |
| - ), |
59 |
| - ), |
60 |
| - ), |
| 51 | + builder: (context) => TextButton( |
| 52 | + child: const Text("Push"), |
| 53 | + onPressed: () => Navigator.push( |
| 54 | + context, |
| 55 | + MaterialPageRoute( |
| 56 | + builder: (context) => Scaffold( |
| 57 | + body: EmailLinkSignInView( |
| 58 | + provider: emailLinkProvider, auth: auth), |
61 | 59 | ),
|
62 | 60 | ),
|
63 | 61 | ),
|
64 |
| - ); |
| 62 | + ), |
| 63 | + ), |
| 64 | + ), |
| 65 | + ); |
| 66 | + |
65 | 67 | await tester.tap(find.textContaining("Push"));
|
66 | 68 | await tester.pumpAndSettle();
|
67 | 69 | final button = find.text(labels.goBackButtonLabel);
|
|
0 commit comments