Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: fix anon user integration test (#6493)
Nathan.fooof8ce501b537c
diff --git a/.github/workflows/rust_ci.yaml b/.github/workflows/rust_ci.yamlindex ab6c06461a..77f09f08c5 100644--- a/.github/workflows/rust_ci.yaml+++ b/.github/workflows/rust_ci.yaml@@ -46,7 +46,7 @@ jobs:- name: Ensure AppFlowy-Cloud is Running with Correct Versionworking-directory: AppFlowy-Cloudenv:- APPFLOWY_CLOUD_VERSION: 0.6.4-amd64+ APPFLOWY_CLOUD_VERSION: 0.6.29-amd64APPFLOWY_HISTORY_VERSION: 0.6.29-amd64APPFLOWY_WORKER_VERSION: 0.6.29-amd64run: |@@ -135,7 +135,7 @@ jobs:- name: Ensure AppFlowy-Cloud is Running with Correct Versionworking-directory: AppFlowy-Cloudenv:- APPFLOWY_CLOUD_VERSION: 0.6.4-amd64+ APPFLOWY_CLOUD_VERSION: 0.6.29-amd64APPFLOWY_HISTORY_VERSION: 0.6.29-amd64APPFLOWY_WORKER_VERSION: 0.6.29-amd64run: |diff --git a/frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dart b/frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dartindex ca63315cf3..621baff5d0 100644--- a/frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dart+++ b/frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dart@@ -3,9 +3,13 @@ import 'sidebar/sidebar_move_page_test.dart' as sidebar_move_page_test;import 'uncategorized/uncategorized_test_runner.dart'as uncategorized_test_runner;import 'workspace/workspace_test_runner.dart' as workspace_test_runner;-import 'data_migration/data_migration_test_runner.dart' as data_migration_test_runner;+import 'data_migration/data_migration_test_runner.dart'+ as data_migration_test_runner;+import 'set_env.dart' as preset_af_cloud_env_test;Future<void> main() async {+ preset_af_cloud_env_test.main();+data_migration_test_runner.main();// uncategorizeduncategorized_test_runner.main();@@ -18,5 +22,4 @@ Future<void> main() async {// sidebarsidebar_move_page_test.main();-}diff --git a/frontend/appflowy_flutter/integration_test/desktop/cloud/data_migration/data_migration_test_runner.dart b/frontend/appflowy_flutter/integration_test/desktop/cloud/data_migration/data_migration_test_runner.dartindex 13d1016f35..a69c0480ce 100644--- a/frontend/appflowy_flutter/integration_test/desktop/cloud/data_migration/data_migration_test_runner.dart+++ b/frontend/appflowy_flutter/integration_test/desktop/cloud/data_migration/data_migration_test_runner.dart@@ -1,5 +1,5 @@-// import 'anon_user_data_migration_test.dart' as anon_user_test;+import 'anon_user_data_migration_test.dart' as anon_user_test;void main() async {- // anon_user_test.main();+ anon_user_test.main();}diff --git a/frontend/appflowy_flutter/integration_test/desktop/cloud/uncategorized/empty_test.dart b/frontend/appflowy_flutter/integration_test/desktop/cloud/set_env.dartsimilarity index 93%rename from frontend/appflowy_flutter/integration_test/desktop/cloud/uncategorized/empty_test.dartrename to frontend/appflowy_flutter/integration_test/desktop/cloud/set_env.dartindex d8975c2064..b24c0faf27 100644--- a/frontend/appflowy_flutter/integration_test/desktop/cloud/uncategorized/empty_test.dart+++ b/frontend/appflowy_flutter/integration_test/desktop/cloud/set_env.dart@@ -2,7 +2,7 @@ import 'package:appflowy/env/cloud_env.dart';import 'package:flutter_test/flutter_test.dart';import 'package:integration_test/integration_test.dart';-import '../../../shared/util.dart';+import '../../shared/util.dart';// This test is meaningless, just for preventing the CI from failing.void main() {diff --git a/frontend/appflowy_flutter/integration_test/desktop/cloud/uncategorized/uncategorized_test_runner.dart b/frontend/appflowy_flutter/integration_test/desktop/cloud/uncategorized/uncategorized_test_runner.dartindex 094c766fa8..278d880965 100644--- a/frontend/appflowy_flutter/integration_test/desktop/cloud/uncategorized/uncategorized_test_runner.dart+++ b/frontend/appflowy_flutter/integration_test/desktop/cloud/uncategorized/uncategorized_test_runner.dart@@ -1,9 +1,7 @@import 'appflowy_cloud_auth_test.dart' as appflowy_cloud_auth_test;-import 'empty_test.dart' as preset_af_cloud_env_test;import 'user_setting_sync_test.dart' as user_sync_test;void main() async {- preset_af_cloud_env_test.main();appflowy_cloud_auth_test.main();user_sync_test.main();}diff --git a/frontend/appflowy_flutter/lib/user/application/auth/af_cloud_mock_auth_service.dart b/frontend/appflowy_flutter/lib/user/application/auth/af_cloud_mock_auth_service.dartindex fac655b7fc..04668a3f99 100644--- a/frontend/appflowy_flutter/lib/user/application/auth/af_cloud_mock_auth_service.dart+++ b/frontend/appflowy_flutter/lib/user/application/auth/af_cloud_mock_auth_service.dart@@ -68,7 +68,7 @@ class AppFlowyCloudMockAuthService implements AuthService {value.fold((l) => null,(err) {- debugPrint("Error: $err");+ debugPrint("signUpWithOAuth Error: $err");Log.error(err);},);@@ -76,7 +76,7 @@ class AppFlowyCloudMockAuthService implements AuthService {});},(r) {- debugPrint("Error: $r");+ debugPrint("signUpWithOAuth Error: $r");return FlowyResult.failure(r);},);