π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Show progress while enabling library sharing
Neeraj Gupta0532a551f9b0
diff --git a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dart b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dartindex f6afa7900f..41eeac039c 100644--- a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dart+++ b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_page.dart@@ -255,6 +255,7 @@ class _LibrarySharingPageState extends State<LibrarySharingPage> {title: LibrarySharingStrings.librarySharing,subtitle: LibrarySharingStrings.shareAllYourAlbums,onTap: _toggleLibrarySharing,+ showOnlyLoadingState: true,trailing: IgnorePointer(child: ExcludeSemantics(child: ToggleSwitchComponent(diff --git a/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dart b/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dartindex b51e32790d..ea6652612a 100644--- a/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dart+++ b/mobile/apps/photos/test/ui/sharing/library_sharing_page_test.dart@@ -98,7 +98,8 @@ void main() {expect(toggle.selected, isFalse);await tester.tap(find.text('Library sharing'));- await tester.pumpAndSettle();+ await tester.pump();+ await tester.pump(const Duration(milliseconds: 500));expect(find.text('Enable library sharing?'), findsOneWidget);expect(@@ -392,14 +393,16 @@ void main() {metrics: scrollPosition,context: scrollContext,scrollDelta: 16,+ dragDetails: DragUpdateDetails(globalPosition: Offset.zero),).dispatch(scrollContext);await tester.pumpAndSettle();- expect(isExpanded(), isTrue);+ expect(isExpanded(), isFalse);ScrollUpdateNotification(metrics: scrollPosition,context: scrollContext,scrollDelta: 16,+ dragDetails: DragUpdateDetails(globalPosition: Offset.zero),).dispatch(scrollContext);await tester.pumpAndSettle();expect(isExpanded(), isFalse);@@ -408,6 +411,7 @@ void main() {metrics: scrollPosition,context: scrollContext,scrollDelta: -16,+ dragDetails: DragUpdateDetails(globalPosition: Offset.zero),).dispatch(scrollContext);await tester.pumpAndSettle();expect(isExpanded(), isFalse);@@ -416,6 +420,7 @@ void main() {metrics: scrollPosition,context: scrollContext,scrollDelta: -16,+ dragDetails: DragUpdateDetails(globalPosition: Offset.zero),).dispatch(scrollContext);await tester.pumpAndSettle();expect(isExpanded(), isTrue);