chore: remove anon user when sign up with a new user (#4253)

* chore: remove anon user when sign up with a new user

* chore: clippy
This commit is contained in:
Nathan.fooo
2023-12-30 09:36:22 +08:00
committed by GitHub
parent 7ba3020ab3
commit 8ccd1ec72c
3 changed files with 8 additions and 3 deletions

View File

@ -56,14 +56,14 @@ void main() {
// tap the continue as anonymous button
await tester
.tapButton(find.text(LocaleKeys.signIn_continueAnonymousUser.tr()));
.tapButton(find.text(LocaleKeys.signIn_loginStartWithAnonymous.tr()));
await tester.expectToSeeHomePage();
// assert the name of the anon user is local_user
// New anon user name
await tester.openSettings();
await tester.openSettingsPage(SettingsPage.user);
final userNameInput = tester.widget(userNameFinder) as UserNameInput;
expect(userNameInput.name, 'local_user');
expect(userNameInput.name, 'Me');
});
});
}