logout method

Future<void> logout()

Implementation

Future<void> logout() async {
  // ensure we do actually have access to the main nav.
  await find.byKey(Keys.mainNav).should(findsOneWidget);
  await navigateTo([
    MainNavKeys.quickJump,
    MainNavKeys.quickJump,
    QuickJumpKeys.settings,
    SettingsMenu.logoutAccount,
    LogoutDialogKeys.confirm,
  ]);

  // we should see a main navigation, either at the side (desktop) or the bottom (mobile/tablet)
  await find.byKey(Keys.mainNav).should(findsNothing);
}