mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 20:07:18 +01:00
sync_settings_ui: assert the password form starts collapsed when Google is offered
Some checks failed
sync_settings_ui tests / test (push) Has been cancelled
Some checks failed
sync_settings_ui tests / test (push) Has been cancelled
Flagged during todo's migration: the "Google available" test asserted the button renders and works, but never checked that the password/email ExpansionTile actually starts collapsed behind it (initiallyExpanded: !googleAvailable) -- the one behavior the old duplicated todo test covered that this package's own suite didn't. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KdSp6Nbrs9xvsWkCMDN9a1
This commit is contained in:
parent
23c693da4e
commit
284aa1e360
@ -190,6 +190,13 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Sign in with Google'), findsOneWidget);
|
||||
// The password form is collapsed behind its ExpansionTile when
|
||||
// Google is offered -- only the field labels prove that; the tile's
|
||||
// own title text is present either way.
|
||||
expect(
|
||||
find.widgetWithText(TextField, 'Sync account email'),
|
||||
findsNothing,
|
||||
);
|
||||
await tester.tap(find.text('Sign in with Google'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user