cross_connectivity icon indicating copy to clipboard operation
cross_connectivity copied to clipboard

Widget test failing

Open SogoGolf opened this issue 3 years ago • 0 comments

We've got a very simple widget test that passes fine, however once we've added the ConnectivityBuilder to the top of the widget tree in that test, the test fails with this error:

2021-11-06_14-53-00

How can we resolve this widget test error ?

  testWidgets('MslDrawer banner text is correct', (WidgetTester tester) async {
    _authService.setAuthUser(AuthUser(
      authSystemUid: 'x',
      authSystem: 'x',
      firstName: 'x',
      lastName: 'x',
    ));

    await tester.pumpWidget(
      MaterialApp(
        home: MslDrawer(),
      ),
    );

    expect(find.text('Version'), findsOneWidget);
  });

SogoGolf avatar Nov 06 '21 03:11 SogoGolf