Browse Source

fix: windows CI build failed (#3741)

Lucas.Xu 1 năm trước cách đây
mục cha
commit
bf0cfa798c

+ 0 - 3
frontend/appflowy_flutter/integration_test/share_markdown_test.dart

@@ -16,9 +16,6 @@ void main() {
       final context = await tester.initializeAppFlowy();
       await tester.tapGoButton();
 
-      // expect to see a readme page
-      tester.expectToSeePageName(gettingStarted);
-
       // mock the file picker
       final path = await mockSaveFilePath(
         p.join(context.applicationDataDirectory, 'test.md'),

+ 6 - 0
frontend/appflowy_flutter/integration_test/util/common_operations.dart

@@ -1,3 +1,5 @@
+import 'dart:io';
+
 import 'package:appflowy/core/config/kv.dart';
 import 'package:appflowy/core/config/kv_keys.dart';
 import 'package:appflowy/generated/flowy_svgs.g.dart';
@@ -27,6 +29,10 @@ extension CommonOperations on WidgetTester {
   Future<void> tapGoButton() async {
     final goButton = find.byType(GoButton);
     await tapButton(goButton);
+
+    if (Platform.isWindows) {
+      await pumpAndSettle(const Duration(milliseconds: 200));
+    }
   }
 
   /// Tap the + button on the home page.

+ 3 - 3
frontend/scripts/makefile/env.toml

@@ -11,7 +11,7 @@ run_task = { name = ["appflowy-flutter-deps-tools","install_diesel"] }
 run_task = { name = ["appflowy-tauri-deps-tools","install_diesel"] }
 
 [tasks.install_windows_deps.windows]
-dependencies=["check_duckscript_installation", "check_visual_studio_installation", "check_vcpkg", "install_vcpkg_sqlite", "install_rust_vcpkg_cli"]
+dependencies=["check_duckscript_installation", "check_vcpkg", "install_vcpkg_sqlite", "install_rust_vcpkg_cli"]
 
 [tasks.check_visual_studio_installation.windows]
 script = """
@@ -158,7 +158,7 @@ script_runner = "@duckscript"
 script = """
 GOLINT_FILENAME="go-gitlint_1.1.0_osx_x86_64.tar.gz"
 curl -L https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME} --output ${GOLINT_FILENAME}
-tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint 
+tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
 rm ${GOLINT_FILENAME}
 """
 
@@ -166,7 +166,7 @@ rm ${GOLINT_FILENAME}
 script = """
 GOLINT_FILENAME="go-gitlint_1.1.0_linux_x86_64.tar.gz"
 wget https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME}
-tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint 
+tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
 rm ${GOLINT_FILENAME}
 """