From c793eb67fc32a5d3406ebacb512b874675346fd9 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 18 Oct 2022 19:26:50 +0800 Subject: [PATCH] test: skip the secondary tap test on Windows --- .../test/service/selection_service_test.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/app_flowy/packages/appflowy_editor/test/service/selection_service_test.dart b/frontend/app_flowy/packages/appflowy_editor/test/service/selection_service_test.dart index ed7452c4a7..5df8e36319 100644 --- a/frontend/app_flowy/packages/appflowy_editor/test/service/selection_service_test.dart +++ b/frontend/app_flowy/packages/appflowy_editor/test/service/selection_service_test.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:appflowy_editor/appflowy_editor.dart'; import 'package:appflowy_editor/src/service/context_menu/context_menu.dart'; import 'package:flutter/gestures.dart'; @@ -116,6 +118,11 @@ void main() async { // test built in context menu items + // Skip the Windows platform because the rich_clipboard package doesn't support it perfectly. + if (Platform.isWindows) { + return; + } + // cut await tester.tap(find.text('Cut')); await tester.pump();