mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-16 05:26:11 +00:00

* chore: move to latest appflowy collab version * chore: filter mapping * chore: remove mutex folder * chore: cleanup borrow checker issues * chore: fixed flowy user crate compilation errors * chore: removed parking lot crate * chore: adjusting non locking approach * chore: remove with folder method * chore: fix folder manager * chore: fixed workspace database compilation errors * chore: initialize database plugins * chore: fix locks in flowy core * chore: remove supabase * chore: async traits * chore: add mutexes in dart ffi * chore: post rebase fixes * chore: remove supabase dart code * chore: fix deadlock * chore: fix page_id is empty * chore: use data source to init collab * chore: fix user awareness test * chore: fix database deadlock * fix: initialize user awareness * chore: fix open workspace test * chore: fix import csv * chore: fix update row meta deadlock * chore: fix document size test * fix: timestamp set/get type convert * fix: calculation * chore: revert Arc to Rc * chore: attach plugin to database and database row * chore: async get row * chore: clippy * chore: fix tauri build * chore: clippy * fix: duplicate view deadlock * chore: fmt * chore: tauri build --------- Co-authored-by: nathan <nathan@appflowy.io>
94 lines
3.6 KiB
Dart
94 lines
3.6 KiB
Dart
// import 'package:appflowy/env/cloud_env.dart';
|
|
// import 'package:appflowy/workspace/application/settings/prelude.dart';
|
|
// import 'package:appflowy/workspace/presentation/settings/pages/settings_account_view.dart';
|
|
// import 'package:appflowy/workspace/presentation/settings/widgets/setting_supabase_cloud.dart';
|
|
// import 'package:flutter_test/flutter_test.dart';
|
|
// import 'package:integration_test/integration_test.dart';
|
|
|
|
// import '../shared/util.dart';
|
|
|
|
// void main() {
|
|
// IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
// group('supabase auth', () {
|
|
// testWidgets('sign in with supabase', (tester) async {
|
|
// await tester.initializeAppFlowy(cloudType: AuthenticatorType.supabase);
|
|
// await tester.tapGoogleLoginInButton();
|
|
// await tester.expectToSeeHomePageWithGetStartedPage();
|
|
// });
|
|
|
|
// testWidgets('sign out with supabase', (tester) async {
|
|
// await tester.initializeAppFlowy(cloudType: AuthenticatorType.supabase);
|
|
// await tester.tapGoogleLoginInButton();
|
|
|
|
// // Open the setting page and sign out
|
|
// await tester.openSettings();
|
|
// await tester.openSettingsPage(SettingsPage.account);
|
|
// await tester.logout();
|
|
|
|
// // Go to the sign in page again
|
|
// await tester.pumpAndSettle(const Duration(seconds: 1));
|
|
// tester.expectToSeeGoogleLoginButton();
|
|
// });
|
|
|
|
// testWidgets('sign in as anonymous', (tester) async {
|
|
// await tester.initializeAppFlowy(cloudType: AuthenticatorType.supabase);
|
|
// await tester.tapSignInAsGuest();
|
|
|
|
// // should not see the sync setting page when sign in as anonymous
|
|
// await tester.openSettings();
|
|
// await tester.openSettingsPage(SettingsPage.account);
|
|
|
|
// // Scroll to sign-out
|
|
// await tester.scrollUntilVisible(
|
|
// find.byType(SignInOutButton),
|
|
// 100,
|
|
// scrollable: find.findSettingsScrollable(),
|
|
// );
|
|
// await tester.tapButton(find.byType(SignInOutButton));
|
|
|
|
// tester.expectToSeeGoogleLoginButton();
|
|
// });
|
|
|
|
// // testWidgets('enable encryption', (tester) async {
|
|
// // await tester.initializeAppFlowy(cloudType: CloudType.supabase);
|
|
// // await tester.tapGoogleLoginInButton();
|
|
|
|
// // // Open the setting page and sign out
|
|
// // await tester.openSettings();
|
|
// // await tester.openSettingsPage(SettingsPage.cloud);
|
|
|
|
// // // the switch should be off by default
|
|
// // tester.assertEnableEncryptSwitchValue(false);
|
|
// // await tester.toggleEnableEncrypt();
|
|
|
|
// // // the switch should be on after toggling
|
|
// // tester.assertEnableEncryptSwitchValue(true);
|
|
|
|
// // // the switch can not be toggled back to off
|
|
// // await tester.toggleEnableEncrypt();
|
|
// // tester.assertEnableEncryptSwitchValue(true);
|
|
// // });
|
|
|
|
// testWidgets('enable sync', (tester) async {
|
|
// await tester.initializeAppFlowy(cloudType: AuthenticatorType.supabase);
|
|
// await tester.tapGoogleLoginInButton();
|
|
|
|
// // Open the setting page and sign out
|
|
// await tester.openSettings();
|
|
// await tester.openSettingsPage(SettingsPage.cloud);
|
|
|
|
// // the switch should be on by default
|
|
// tester.assertSupabaseEnableSyncSwitchValue(true);
|
|
// await tester.toggleEnableSync(SupabaseEnableSync);
|
|
|
|
// // the switch should be off
|
|
// tester.assertSupabaseEnableSyncSwitchValue(false);
|
|
|
|
// // the switch should be on after toggling
|
|
// await tester.toggleEnableSync(SupabaseEnableSync);
|
|
// tester.assertSupabaseEnableSyncSwitchValue(true);
|
|
// });
|
|
// });
|
|
// }
|