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