From a9821a42be89c40021980e280668e01caa1b4164 Mon Sep 17 00:00:00 2001 From: foo Date: Wed, 12 Jul 2023 18:36:34 +0800 Subject: [PATCH] Fix occasional CI failures on the iPhone simulator --- KIF Tests/AccessibilityIdentifierTests.m | 1 + KIF Tests/AccessibilityIdentifierTests_ViewTestActor.m | 1 + KIF Tests/LongPressTests.m | 1 + KIF Tests/LongPressTests_ViewTestActor.m | 1 + KIF Tests/TypingTests.m | 1 + KIF Tests/TypingTests_ViewTestActor.m | 1 + 6 files changed, 6 insertions(+) diff --git a/KIF Tests/AccessibilityIdentifierTests.m b/KIF Tests/AccessibilityIdentifierTests.m index e46ee82a6..92f23248f 100644 --- a/KIF Tests/AccessibilityIdentifierTests.m +++ b/KIF Tests/AccessibilityIdentifierTests.m @@ -17,6 +17,7 @@ @implementation AccessibilityIdentifierTests - (void)beforeEach { + UIPasteboard.generalPasteboard.string = nil; [tester tapViewWithAccessibilityLabel:@"Tapping"]; } diff --git a/KIF Tests/AccessibilityIdentifierTests_ViewTestActor.m b/KIF Tests/AccessibilityIdentifierTests_ViewTestActor.m index 20501d165..dc83f2305 100644 --- a/KIF Tests/AccessibilityIdentifierTests_ViewTestActor.m +++ b/KIF Tests/AccessibilityIdentifierTests_ViewTestActor.m @@ -17,6 +17,7 @@ @implementation AccessibilityIdentifierTests_ViewTestActor - (void)beforeEach { + UIPasteboard.generalPasteboard.string = nil; [[viewTester usingLabel:@"Tapping"] tap]; } diff --git a/KIF Tests/LongPressTests.m b/KIF Tests/LongPressTests.m index 95e8875a8..d8e3f8d6b 100644 --- a/KIF Tests/LongPressTests.m +++ b/KIF Tests/LongPressTests.m @@ -15,6 +15,7 @@ @implementation LongPressTests - (void)beforeEach { + UIPasteboard.generalPasteboard.string = nil; [tester tapViewWithAccessibilityLabel:@"Tapping"]; } diff --git a/KIF Tests/LongPressTests_ViewTestActor.m b/KIF Tests/LongPressTests_ViewTestActor.m index 393f58eac..d472cd380 100644 --- a/KIF Tests/LongPressTests_ViewTestActor.m +++ b/KIF Tests/LongPressTests_ViewTestActor.m @@ -16,6 +16,7 @@ @implementation LongPressTests_ViewTestActor - (void)beforeEach { + UIPasteboard.generalPasteboard.string = nil; [[viewTester usingLabel:@"Tapping"] tap]; } diff --git a/KIF Tests/TypingTests.m b/KIF Tests/TypingTests.m index f50a2cd2a..2b9f4b259 100644 --- a/KIF Tests/TypingTests.m +++ b/KIF Tests/TypingTests.m @@ -16,6 +16,7 @@ @implementation TypingTests - (void)beforeEach { + UIPasteboard.generalPasteboard.string = nil; [tester tapViewWithAccessibilityLabel:@"Tapping"]; } diff --git a/KIF Tests/TypingTests_ViewTestActor.m b/KIF Tests/TypingTests_ViewTestActor.m index 384c805be..a907ecda6 100644 --- a/KIF Tests/TypingTests_ViewTestActor.m +++ b/KIF Tests/TypingTests_ViewTestActor.m @@ -17,6 +17,7 @@ @implementation TypingTests_ViewTestActor - (void)beforeEach { + UIPasteboard.generalPasteboard.string = nil; [[viewTester usingLabel:@"Tapping"] tap]; }