Skip to content

Widget test failing #16

Open
Open
@SogoGolf

Description

@SogoGolf

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);
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions