login method

Future<void> login(
  1. String username, {
  2. String? password,
})

Implementation

Future<void> login(String username, {String? password}) async {
  await tryLogin(username, password: password);
  // we should see a main navigation, either at the side (desktop) or the bottom (mobile/tablet)
  await find.byKey(Keys.mainNav).should(findsOneWidget);
}