appium-mac2-driver 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.5.3](https://github.com/appium/appium-mac2-driver/compare/v1.5.2...v1.5.3) (2023-02-21)
2
+
3
+
4
+ ### Miscellaneous Chores
5
+
6
+ * Tune test interruption patching logic ([#194](https://github.com/appium/appium-mac2-driver/issues/194)) ([febe396](https://github.com/appium/appium-mac2-driver/commit/febe396a56389b7870f806b1c78516a393df6000))
7
+
1
8
  ## [1.5.2](https://github.com/appium/appium-mac2-driver/compare/v1.5.1...v1.5.2) (2023-02-20)
2
9
 
3
10
 
@@ -11,7 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
- @interface XCTestSuite (AMPatcher)
14
+ @interface XCTIssue (AMPatcher)
15
15
 
16
16
  @end
17
17
 
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the BSD-style license found in the
6
+ * LICENSE file in the root directory of this source tree. An additional grant
7
+ * of patent rights can be found in the PATENTS file in the same directory.
8
+ */
9
+
10
+ #import "XCTIssue+AMPatcher.h"
11
+
12
+ #import <objc/runtime.h>
13
+
14
+ static _Bool swizzledShouldInterruptTest(id self, SEL _cmd)
15
+ {
16
+ return NO;
17
+ }
18
+
19
+ @implementation XCTIssue (AMPatcher)
20
+
21
+ + (void)load
22
+ {
23
+ SEL originalShouldInterruptTest = NSSelectorFromString(@"shouldInterruptTest");
24
+ if (nil == originalShouldInterruptTest) return;
25
+ Method originalShouldInterruptTestMethod = class_getInstanceMethod(self.class, originalShouldInterruptTest);
26
+ if (nil == originalShouldInterruptTestMethod) return;
27
+ method_setImplementation(originalShouldInterruptTestMethod, (IMP)swizzledShouldInterruptTest);
28
+ }
29
+
30
+ @end
@@ -12,7 +12,7 @@
12
12
  #import "FBBaseActionsSynthesizer.h"
13
13
  #import "FBErrorBuilder.h"
14
14
  #import "FBW3CActionsSynthesizer.h"
15
- #import "XCUIDevice.h"
15
+ #import "XCUIEventSynthesizing-Protocol.h"
16
16
 
17
17
  #define MAX_ACTIONS_DURATION_SEC 300
18
18
 
@@ -37,8 +37,10 @@
37
37
  {
38
38
  __block NSError *internalError = nil;
39
39
  dispatch_semaphore_t sem = dispatch_semaphore_create(0);
40
- [[XCUIDevice.sharedDevice eventSynthesizer] synthesizeEvent:event
41
- completion:(id)^(BOOL result, NSError *invokeError) {
40
+ id<XCUIEventSynthesizing> eventSynthesizer = [[NSClassFromString(@"XCUIDevice") valueForKey:@"sharedDevice"]
41
+ valueForKey:@"eventSynthesizer"];
42
+ [eventSynthesizer synthesizeEvent:event
43
+ completion:(id)^(BOOL result, NSError *invokeError) {
42
44
  if (!result) {
43
45
  internalError = invokeError;
44
46
  }
@@ -16,7 +16,7 @@
16
16
  #import "FBMacros.h"
17
17
  #import "FBProtocolHelpers.h"
18
18
 
19
- id<FBResponsePayload> FBResponseWithOK()
19
+ id<FBResponsePayload> FBResponseWithOK(void)
20
20
  {
21
21
  return FBResponseWithStatus(FBCommandStatus.ok);
22
22
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the BSD-style license found in the
6
+ * LICENSE file in the root directory of this source tree. An additional grant
7
+ * of patent rights can be found in the PATENTS file in the same directory.
8
+ */
9
+
10
+ #import <XCTest/XCTest.h>
11
+
12
+ NS_ASSUME_NONNULL_BEGIN
13
+
14
+ /**
15
+ Test Case that will never fail or stop from running in case of failure
16
+ */
17
+ @interface FBFailureProofTestCase : XCTestCase
18
+ @end
19
+
20
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the BSD-style license found in the
6
+ * LICENSE file in the root directory of this source tree. An additional grant
7
+ * of patent rights can be found in the PATENTS file in the same directory.
8
+ */
9
+
10
+ #import "FBFailureProofTestCase.h"
11
+
12
+ #import "FBLogger.h"
13
+
14
+ @implementation FBFailureProofTestCase
15
+
16
+ - (void)setUp
17
+ {
18
+ [super setUp];
19
+ self.continueAfterFailure = YES;
20
+ // https://github.com/appium/appium/issues/13949
21
+ [self setValue:@(NO) forKey:@"_shouldSetShouldHaltWhenReceivesControl"];
22
+ [self setValue:@(NO) forKey:@"_shouldHaltWhenReceivesControl"];
23
+ }
24
+
25
+ - (void)_recordIssue:(XCTIssue *)issue
26
+ {
27
+ NSString *description = [NSString stringWithFormat:@"%@ (%@)", issue.compactDescription, issue.associatedError.description];
28
+ [FBLogger logFmt:@"Issue type: %ld", issue.type];
29
+ [self _enqueueFailureWithDescription:description
30
+ inFile:issue.sourceCodeContext.location.fileURL.path
31
+ atLine:issue.sourceCodeContext.location.lineNumber
32
+ expected:issue.type == 5];
33
+ }
34
+
35
+ - (void)_recordIssue:(XCTIssue *)issue forCaughtError:(id)error
36
+ {
37
+ [self _recordIssue:issue];
38
+ }
39
+
40
+ - (void)recordIssue:(XCTIssue *)issue
41
+ {
42
+ [self _recordIssue:issue];
43
+ }
44
+
45
+ /**
46
+ Override 'recordFailureWithDescription' to not stop by failures.
47
+ */
48
+ - (void)recordFailureWithDescription:(NSString *)description
49
+ inFile:(NSString *)filePath
50
+ atLine:(NSUInteger)lineNumber
51
+ expected:(BOOL)expected
52
+ {
53
+ [self _enqueueFailureWithDescription:description inFile:filePath atLine:lineNumber expected:expected];
54
+ }
55
+
56
+ /**
57
+ Private XCTestCase method used to block and tunnel failure messages
58
+ */
59
+ - (void)_enqueueFailureWithDescription:(NSString *)description
60
+ inFile:(NSString *)filePath
61
+ atLine:(NSUInteger)lineNumber
62
+ expected:(BOOL)expected
63
+ {
64
+ [FBLogger logFmt:@"Enqueue Failure: %@ %@ %lu %d", description, filePath, (unsigned long)lineNumber, expected];
65
+ // TODO: Figure out which errors we want to escalate
66
+ }
67
+
68
+ @end
@@ -18,3 +18,6 @@
18
18
 
19
19
  #import <WebDriverAgentLib/FBConfiguration.h>
20
20
  #import <WebDriverAgentLib/FBWebServer.h>
21
+ // This is needed to ignore test failures in Xcode 12.5+
22
+ #import <WebDriverAgentLib/XCTIssue+AMPatcher.h>
23
+ #import <WebDriverAgentLib/FBFailureProofTestCase.h>
@@ -122,7 +122,6 @@
122
122
  714CA7062566487B00353B27 /* FBXPath.h in Headers */ = {isa = PBXBuildFile; fileRef = 714CA7042566487B00353B27 /* FBXPath.h */; };
123
123
  714CA7072566487B00353B27 /* FBXPath.m in Sources */ = {isa = PBXBuildFile; fileRef = 714CA7052566487B00353B27 /* FBXPath.m */; };
124
124
  714CA70A256648B200353B27 /* libxml2.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 714CA709256648A100353B27 /* libxml2.tbd */; };
125
- 715C123A27EB587100D6F63B /* XCTestSuite+AMPatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 715C123927EB587100D6F63B /* XCTestSuite+AMPatcher.m */; };
126
125
  71688A98256461ED0007F55B /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 71688A97256461ED0007F55B /* AppDelegate.m */; };
127
126
  71688A9B256461ED0007F55B /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71688A9A256461ED0007F55B /* ViewController.m */; };
128
127
  71688A9D256461F00007F55B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 71688A9C256461F00007F55B /* Assets.xcassets */; };
@@ -147,7 +146,6 @@
147
146
  7180C1E8257A94F4008FA870 /* XCPointerEventPath.h in Headers */ = {isa = PBXBuildFile; fileRef = 7180C1E6257A94F3008FA870 /* XCPointerEventPath.h */; };
148
147
  7180C1E9257A94F4008FA870 /* XCPointerEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 7180C1E7257A94F4008FA870 /* XCPointerEvent.h */; };
149
148
  7180C1ED257A95C2008FA870 /* XCSynthesizedEventRecord.h in Headers */ = {isa = PBXBuildFile; fileRef = 7180C1EC257A95C2008FA870 /* XCSynthesizedEventRecord.h */; };
150
- 7180C1F3257A97B5008FA870 /* XCUIDevice.h in Headers */ = {isa = PBXBuildFile; fileRef = 7180C1F2257A97B5008FA870 /* XCUIDevice.h */; };
151
149
  7180C1F7257A9896008FA870 /* XCUIEventSynthesizing-Protocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 7180C1F6257A9896008FA870 /* XCUIEventSynthesizing-Protocol.h */; };
152
150
  7180C203257A9FAC008FA870 /* CDStructures.h in Headers */ = {isa = PBXBuildFile; fileRef = 7180C202257A9FAC008FA870 /* CDStructures.h */; };
153
151
  7180C208257AA29A008FA870 /* NSValue+AMPoint.h in Headers */ = {isa = PBXBuildFile; fileRef = 7180C206257AA29A008FA870 /* NSValue+AMPoint.h */; };
@@ -175,6 +173,10 @@
175
173
  7199B3D42565B25E000B5C51 /* WebDriverAgentLib.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 7199B3AB2565B122000B5C51 /* WebDriverAgentLib.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
176
174
  719E6A6E25822DB800777988 /* XCUIApplication+AMUIInterruptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 719E6A6C25822DB800777988 /* XCUIApplication+AMUIInterruptions.h */; };
177
175
  719E6A6F25822DB800777988 /* XCUIApplication+AMUIInterruptions.m in Sources */ = {isa = PBXBuildFile; fileRef = 719E6A6D25822DB800777988 /* XCUIApplication+AMUIInterruptions.m */; };
176
+ 71A5C66F29A4E23F00421C37 /* XCTIssue+AMPatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 715C123927EB587100D6F63B /* XCTIssue+AMPatcher.m */; };
177
+ 71A5C67029A4E41A00421C37 /* XCTIssue+AMPatcher.h in Headers */ = {isa = PBXBuildFile; fileRef = 715C123827EB587100D6F63B /* XCTIssue+AMPatcher.h */; settings = {ATTRIBUTES = (Public, ); }; };
178
+ 71A5C67929A4FAF900421C37 /* FBFailureProofTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = 71A5C67729A4FAF800421C37 /* FBFailureProofTestCase.m */; };
179
+ 71A5C67A29A4FAF900421C37 /* FBFailureProofTestCase.h in Headers */ = {isa = PBXBuildFile; fileRef = 71A5C67829A4FAF900421C37 /* FBFailureProofTestCase.h */; settings = {ATTRIBUTES = (Public, ); }; };
178
180
  71AA30BF25EFF81900151CED /* AMKeyboardUtils.h in Headers */ = {isa = PBXBuildFile; fileRef = 71AA30BD25EFF81900151CED /* AMKeyboardUtils.h */; };
179
181
  71AA30C025EFF81900151CED /* AMKeyboardUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 71AA30BE25EFF81900151CED /* AMKeyboardUtils.m */; };
180
182
  71B00E8E2566D4BA0010DA73 /* AMIntegrationTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = 71B00E8D2566D4BA0010DA73 /* AMIntegrationTestCase.m */; };
@@ -344,8 +346,8 @@
344
346
  7151AE302564FA37008B8B2A /* FBRuntimeUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FBRuntimeUtils.h; sourceTree = "<group>"; };
345
347
  7151AE352564FAAC008B8B2A /* FBUnknownCommands.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FBUnknownCommands.m; sourceTree = "<group>"; };
346
348
  7151AE362564FAAC008B8B2A /* FBUnknownCommands.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FBUnknownCommands.h; sourceTree = "<group>"; };
347
- 715C123827EB587100D6F63B /* XCTestSuite+AMPatcher.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XCTestSuite+AMPatcher.h"; sourceTree = "<group>"; };
348
- 715C123927EB587100D6F63B /* XCTestSuite+AMPatcher.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "XCTestSuite+AMPatcher.m"; sourceTree = "<group>"; };
349
+ 715C123827EB587100D6F63B /* XCTIssue+AMPatcher.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XCTIssue+AMPatcher.h"; sourceTree = "<group>"; };
350
+ 715C123927EB587100D6F63B /* XCTIssue+AMPatcher.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "XCTIssue+AMPatcher.m"; sourceTree = "<group>"; };
349
351
  71688A93256461ED0007F55B /* WebDriverAgent.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WebDriverAgent.app; sourceTree = BUILT_PRODUCTS_DIR; };
350
352
  71688A96256461ED0007F55B /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
351
353
  71688A97256461ED0007F55B /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -378,7 +380,6 @@
378
380
  7180C1E6257A94F3008FA870 /* XCPointerEventPath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XCPointerEventPath.h; sourceTree = "<group>"; };
379
381
  7180C1E7257A94F4008FA870 /* XCPointerEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XCPointerEvent.h; sourceTree = "<group>"; };
380
382
  7180C1EC257A95C2008FA870 /* XCSynthesizedEventRecord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XCSynthesizedEventRecord.h; sourceTree = "<group>"; };
381
- 7180C1F2257A97B5008FA870 /* XCUIDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XCUIDevice.h; sourceTree = "<group>"; };
382
383
  7180C1F6257A9896008FA870 /* XCUIEventSynthesizing-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "XCUIEventSynthesizing-Protocol.h"; sourceTree = "<group>"; };
383
384
  7180C202257A9FAC008FA870 /* CDStructures.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDStructures.h; sourceTree = "<group>"; };
384
385
  7180C206257AA29A008FA870 /* NSValue+AMPoint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSValue+AMPoint.h"; sourceTree = "<group>"; };
@@ -406,6 +407,8 @@
406
407
  7199B3AE2565B122000B5C51 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
407
408
  719E6A6C25822DB800777988 /* XCUIApplication+AMUIInterruptions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XCUIApplication+AMUIInterruptions.h"; sourceTree = "<group>"; };
408
409
  719E6A6D25822DB800777988 /* XCUIApplication+AMUIInterruptions.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "XCUIApplication+AMUIInterruptions.m"; sourceTree = "<group>"; };
410
+ 71A5C67729A4FAF800421C37 /* FBFailureProofTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FBFailureProofTestCase.m; sourceTree = "<group>"; };
411
+ 71A5C67829A4FAF900421C37 /* FBFailureProofTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FBFailureProofTestCase.h; sourceTree = "<group>"; };
409
412
  71AA30BD25EFF81900151CED /* AMKeyboardUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AMKeyboardUtils.h; sourceTree = "<group>"; };
410
413
  71AA30BE25EFF81900151CED /* AMKeyboardUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AMKeyboardUtils.m; sourceTree = "<group>"; };
411
414
  71B00E8B2566D4B90010DA73 /* IntegrationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = IntegrationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -588,6 +591,8 @@
588
591
  718EE0BA256B0A0300B46325 /* NSString+FBXMLSafeString.m */,
589
592
  7180C206257AA29A008FA870 /* NSValue+AMPoint.h */,
590
593
  7180C207257AA29A008FA870 /* NSValue+AMPoint.m */,
594
+ 715C123827EB587100D6F63B /* XCTIssue+AMPatcher.h */,
595
+ 715C123927EB587100D6F63B /* XCTIssue+AMPatcher.m */,
591
596
  713A9D2F2566A14200118D07 /* XCUIApplication+AMActiveElement.h */,
592
597
  713A9D302566A14200118D07 /* XCUIApplication+AMActiveElement.m */,
593
598
  710527FD2565802200130763 /* XCUIApplication+AMHelpers.h */,
@@ -706,6 +711,8 @@
706
711
  7151AD332564F4C5008B8B2A /* FBElementUtils.m */,
707
712
  7151AD832564F56E008B8B2A /* FBErrorBuilder.h */,
708
713
  7151ADB72564F571008B8B2A /* FBErrorBuilder.m */,
714
+ 71A5C67829A4FAF900421C37 /* FBFailureProofTestCase.h */,
715
+ 71A5C67729A4FAF800421C37 /* FBFailureProofTestCase.m */,
709
716
  7151AD952564F56F008B8B2A /* FBLogger.h */,
710
717
  7151ADAD2564F570008B8B2A /* FBLogger.m */,
711
718
  7151ADA12564F570008B8B2A /* FBMacros.h */,
@@ -727,8 +734,6 @@
727
734
  isa = PBXGroup;
728
735
  children = (
729
736
  71688B1625646A620007F55B /* WebDriverAgentRunner.m */,
730
- 715C123827EB587100D6F63B /* XCTestSuite+AMPatcher.h */,
731
- 715C123927EB587100D6F63B /* XCTestSuite+AMPatcher.m */,
732
737
  71688B1825646A620007F55B /* Info.plist */,
733
738
  );
734
739
  path = WebDriverAgentRunner;
@@ -757,7 +762,6 @@
757
762
  isa = PBXGroup;
758
763
  children = (
759
764
  7180C202257A9FAC008FA870 /* CDStructures.h */,
760
- 7180C1F2257A97B5008FA870 /* XCUIDevice.h */,
761
765
  7180C1E7257A94F4008FA870 /* XCPointerEvent.h */,
762
766
  7180C1E6257A94F3008FA870 /* XCPointerEventPath.h */,
763
767
  7180C1EC257A95C2008FA870 /* XCSynthesizedEventRecord.h */,
@@ -843,6 +847,7 @@
843
847
  7168D5AE258B849B00EEFA12 /* LRUCache.h in Headers */,
844
848
  7109C03D2565B5BF006BFD13 /* NSPredicate+FBFormat.h in Headers */,
845
849
  7180C1DA257A9369008FA870 /* AMActionCommands.h in Headers */,
850
+ 71A5C67029A4E41A00421C37 /* XCTIssue+AMPatcher.h in Headers */,
846
851
  713A9D2D25669E4F00118D07 /* XCUIElement+FBClassChain.h in Headers */,
847
852
  7109C0422565B5C7006BFD13 /* XCUIApplication+AMHelpers.h in Headers */,
848
853
  71B8B67926724B9F009CE50C /* XCUIElement+AMSwipe.h in Headers */,
@@ -853,7 +858,6 @@
853
858
  7109C0132565B576006BFD13 /* FBRouteRequest-Private.h in Headers */,
854
859
  718D2BE9256713FD005F533B /* XCUIElement+AMCoordinates.h in Headers */,
855
860
  7109C07B2565B61A006BFD13 /* RoutingHTTPServer.h in Headers */,
856
- 7180C1F3257A97B5008FA870 /* XCUIDevice.h in Headers */,
857
861
  7180C1E0257A9410008FA870 /* XCUIApplication+FBW3CActions.h in Headers */,
858
862
  7109C00E2565B571006BFD13 /* FBRoute.h in Headers */,
859
863
  7109C02E2565B5AA006BFD13 /* FBScreenshotCommands.h in Headers */,
@@ -865,6 +869,7 @@
865
869
  7109C0292565B5A3006BFD13 /* FBSessionCommands.h in Headers */,
866
870
  7109C0042565B564006BFD13 /* FBResponsePayload.h in Headers */,
867
871
  713A9D312566A14200118D07 /* XCUIApplication+AMActiveElement.h in Headers */,
872
+ 71A5C67A29A4FAF900421C37 /* FBFailureProofTestCase.h in Headers */,
868
873
  714CA7062566487B00353B27 /* FBXPath.h in Headers */,
869
874
  7109BFF22565B54D006BFD13 /* FBExceptionHandler.h in Headers */,
870
875
  7109C0532565B5EA006BFD13 /* HTTPErrorResponse.h in Headers */,
@@ -1076,7 +1081,6 @@
1076
1081
  buildActionMask = 2147483647;
1077
1082
  files = (
1078
1083
  71688B1725646A620007F55B /* WebDriverAgentRunner.m in Sources */,
1079
- 715C123A27EB587100D6F63B /* XCTestSuite+AMPatcher.m in Sources */,
1080
1084
  );
1081
1085
  runOnlyForDeploymentPostprocessing = 0;
1082
1086
  };
@@ -1091,6 +1095,7 @@
1091
1095
  7109C0312565B5AE006BFD13 /* FBScreenshotCommands.m in Sources */,
1092
1096
  7109C0492565B5DD006BFD13 /* DDNumber.m in Sources */,
1093
1097
  7109BFFA2565B556006BFD13 /* FBExceptions.m in Sources */,
1098
+ 71A5C66F29A4E23F00421C37 /* XCTIssue+AMPatcher.m in Sources */,
1094
1099
  7109BFC52565B508006BFD13 /* FBErrorBuilder.m in Sources */,
1095
1100
  7180C1D5257A9348008FA870 /* FBW3CActionsSynthesizer.m in Sources */,
1096
1101
  712FA092288BD68100976DA8 /* AMWindowCommands.m in Sources */,
@@ -1151,6 +1156,7 @@
1151
1156
  7109BFD72565B522006BFD13 /* FBRunLoopSpinner.m in Sources */,
1152
1157
  7109BFBB2565B4FA006BFD13 /* FBConfiguration.m in Sources */,
1153
1158
  7180C1DB257A9369008FA870 /* AMActionCommands.m in Sources */,
1159
+ 71A5C67929A4FAF900421C37 /* FBFailureProofTestCase.m in Sources */,
1154
1160
  7109C0552565B5EC006BFD13 /* HTTPErrorResponse.m in Sources */,
1155
1161
  7109C0112565B574006BFD13 /* FBRoute.m in Sources */,
1156
1162
  713A9D1D256696AA00118D07 /* FBCustomCommands.m in Sources */,
@@ -18,10 +18,7 @@
18
18
 
19
19
  #import <WebDriverAgentLib/WebDriverAgentLib.h>
20
20
 
21
- // This is needed to ignore test failures in Xcode 12.5+
22
- #import "XCTestSuite+AMPatcher.h"
23
-
24
- @interface UITestingUITests : XCTestCase <FBWebServerDelegate>
21
+ @interface UITestingUITests : FBFailureProofTestCase <FBWebServerDelegate>
25
22
  @end
26
23
 
27
24
  @implementation UITestingUITests
@@ -36,9 +33,6 @@
36
33
  - (void)setUp
37
34
  {
38
35
  [super setUp];
39
- self.continueAfterFailure = YES;
40
- [self setValue:@(NO) forKey:@"_shouldSetShouldHaltWhenReceivesControl"];
41
- [self setValue:@(NO) forKey:@"_shouldHaltWhenReceivesControl"];
42
36
  }
43
37
 
44
38
  /**
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appium-mac2-driver",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-mac2-driver",
9
- "version": "1.5.2",
9
+ "version": "1.5.3",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@babel/runtime": "^7.0.0",
@@ -617,7 +617,7 @@
617
617
  }
618
618
  },
619
619
  "node_modules/@babel/generator": {
620
- "version": "7.21.0",
620
+ "version": "7.21.1",
621
621
  "dev": true,
622
622
  "license": "MIT",
623
623
  "dependencies": {
@@ -966,7 +966,7 @@
966
966
  }
967
967
  },
968
968
  "node_modules/@babel/parser": {
969
- "version": "7.21.0",
969
+ "version": "7.21.1",
970
970
  "dev": true,
971
971
  "license": "MIT",
972
972
  "bin": {
@@ -2193,11 +2193,11 @@
2193
2193
  "license": "BSD-3-Clause"
2194
2194
  },
2195
2195
  "node_modules/@jimp/bmp": {
2196
- "version": "0.22.4",
2196
+ "version": "0.22.5",
2197
2197
  "license": "MIT",
2198
2198
  "peer": true,
2199
2199
  "dependencies": {
2200
- "@jimp/utils": "^0.22.4",
2200
+ "@jimp/utils": "^0.22.5",
2201
2201
  "bmp-js": "^0.1.0"
2202
2202
  },
2203
2203
  "peerDependencies": {
@@ -2205,11 +2205,11 @@
2205
2205
  }
2206
2206
  },
2207
2207
  "node_modules/@jimp/core": {
2208
- "version": "0.22.4",
2208
+ "version": "0.22.5",
2209
2209
  "license": "MIT",
2210
2210
  "peer": true,
2211
2211
  "dependencies": {
2212
- "@jimp/utils": "^0.22.4",
2212
+ "@jimp/utils": "^0.22.5",
2213
2213
  "any-base": "^1.1.0",
2214
2214
  "buffer": "^5.2.0",
2215
2215
  "exif-parser": "^0.1.12",
@@ -2221,19 +2221,19 @@
2221
2221
  }
2222
2222
  },
2223
2223
  "node_modules/@jimp/custom": {
2224
- "version": "0.22.4",
2224
+ "version": "0.22.5",
2225
2225
  "license": "MIT",
2226
2226
  "peer": true,
2227
2227
  "dependencies": {
2228
- "@jimp/core": "^0.22.4"
2228
+ "@jimp/core": "^0.22.5"
2229
2229
  }
2230
2230
  },
2231
2231
  "node_modules/@jimp/gif": {
2232
- "version": "0.22.4",
2232
+ "version": "0.22.5",
2233
2233
  "license": "MIT",
2234
2234
  "peer": true,
2235
2235
  "dependencies": {
2236
- "@jimp/utils": "^0.22.4",
2236
+ "@jimp/utils": "^0.22.5",
2237
2237
  "gifwrap": "^0.9.2",
2238
2238
  "omggif": "^1.0.9"
2239
2239
  },
@@ -2242,11 +2242,11 @@
2242
2242
  }
2243
2243
  },
2244
2244
  "node_modules/@jimp/jpeg": {
2245
- "version": "0.22.4",
2245
+ "version": "0.22.5",
2246
2246
  "license": "MIT",
2247
2247
  "peer": true,
2248
2248
  "dependencies": {
2249
- "@jimp/utils": "^0.22.4",
2249
+ "@jimp/utils": "^0.22.5",
2250
2250
  "jpeg-js": "^0.4.4"
2251
2251
  },
2252
2252
  "peerDependencies": {
@@ -2254,44 +2254,44 @@
2254
2254
  }
2255
2255
  },
2256
2256
  "node_modules/@jimp/plugin-blit": {
2257
- "version": "0.22.4",
2257
+ "version": "0.22.5",
2258
2258
  "license": "MIT",
2259
2259
  "peer": true,
2260
2260
  "dependencies": {
2261
- "@jimp/utils": "^0.22.4"
2261
+ "@jimp/utils": "^0.22.5"
2262
2262
  },
2263
2263
  "peerDependencies": {
2264
2264
  "@jimp/custom": ">=0.3.5"
2265
2265
  }
2266
2266
  },
2267
2267
  "node_modules/@jimp/plugin-blur": {
2268
- "version": "0.22.4",
2268
+ "version": "0.22.5",
2269
2269
  "license": "MIT",
2270
2270
  "peer": true,
2271
2271
  "dependencies": {
2272
- "@jimp/utils": "^0.22.4"
2272
+ "@jimp/utils": "^0.22.5"
2273
2273
  },
2274
2274
  "peerDependencies": {
2275
2275
  "@jimp/custom": ">=0.3.5"
2276
2276
  }
2277
2277
  },
2278
2278
  "node_modules/@jimp/plugin-circle": {
2279
- "version": "0.22.4",
2279
+ "version": "0.22.5",
2280
2280
  "license": "MIT",
2281
2281
  "peer": true,
2282
2282
  "dependencies": {
2283
- "@jimp/utils": "^0.22.4"
2283
+ "@jimp/utils": "^0.22.5"
2284
2284
  },
2285
2285
  "peerDependencies": {
2286
2286
  "@jimp/custom": ">=0.3.5"
2287
2287
  }
2288
2288
  },
2289
2289
  "node_modules/@jimp/plugin-color": {
2290
- "version": "0.22.4",
2290
+ "version": "0.22.5",
2291
2291
  "license": "MIT",
2292
2292
  "peer": true,
2293
2293
  "dependencies": {
2294
- "@jimp/utils": "^0.22.4",
2294
+ "@jimp/utils": "^0.22.5",
2295
2295
  "tinycolor2": "^1.6.0"
2296
2296
  },
2297
2297
  "peerDependencies": {
@@ -2299,11 +2299,11 @@
2299
2299
  }
2300
2300
  },
2301
2301
  "node_modules/@jimp/plugin-contain": {
2302
- "version": "0.22.4",
2302
+ "version": "0.22.5",
2303
2303
  "license": "MIT",
2304
2304
  "peer": true,
2305
2305
  "dependencies": {
2306
- "@jimp/utils": "^0.22.4"
2306
+ "@jimp/utils": "^0.22.5"
2307
2307
  },
2308
2308
  "peerDependencies": {
2309
2309
  "@jimp/custom": ">=0.3.5",
@@ -2313,11 +2313,11 @@
2313
2313
  }
2314
2314
  },
2315
2315
  "node_modules/@jimp/plugin-cover": {
2316
- "version": "0.22.4",
2316
+ "version": "0.22.5",
2317
2317
  "license": "MIT",
2318
2318
  "peer": true,
2319
2319
  "dependencies": {
2320
- "@jimp/utils": "^0.22.4"
2320
+ "@jimp/utils": "^0.22.5"
2321
2321
  },
2322
2322
  "peerDependencies": {
2323
2323
  "@jimp/custom": ">=0.3.5",
@@ -2327,55 +2327,55 @@
2327
2327
  }
2328
2328
  },
2329
2329
  "node_modules/@jimp/plugin-crop": {
2330
- "version": "0.22.4",
2330
+ "version": "0.22.5",
2331
2331
  "license": "MIT",
2332
2332
  "peer": true,
2333
2333
  "dependencies": {
2334
- "@jimp/utils": "^0.22.4"
2334
+ "@jimp/utils": "^0.22.5"
2335
2335
  },
2336
2336
  "peerDependencies": {
2337
2337
  "@jimp/custom": ">=0.3.5"
2338
2338
  }
2339
2339
  },
2340
2340
  "node_modules/@jimp/plugin-displace": {
2341
- "version": "0.22.4",
2341
+ "version": "0.22.5",
2342
2342
  "license": "MIT",
2343
2343
  "peer": true,
2344
2344
  "dependencies": {
2345
- "@jimp/utils": "^0.22.4"
2345
+ "@jimp/utils": "^0.22.5"
2346
2346
  },
2347
2347
  "peerDependencies": {
2348
2348
  "@jimp/custom": ">=0.3.5"
2349
2349
  }
2350
2350
  },
2351
2351
  "node_modules/@jimp/plugin-dither": {
2352
- "version": "0.22.4",
2352
+ "version": "0.22.5",
2353
2353
  "license": "MIT",
2354
2354
  "peer": true,
2355
2355
  "dependencies": {
2356
- "@jimp/utils": "^0.22.4"
2356
+ "@jimp/utils": "^0.22.5"
2357
2357
  },
2358
2358
  "peerDependencies": {
2359
2359
  "@jimp/custom": ">=0.3.5"
2360
2360
  }
2361
2361
  },
2362
2362
  "node_modules/@jimp/plugin-fisheye": {
2363
- "version": "0.22.4",
2363
+ "version": "0.22.5",
2364
2364
  "license": "MIT",
2365
2365
  "peer": true,
2366
2366
  "dependencies": {
2367
- "@jimp/utils": "^0.22.4"
2367
+ "@jimp/utils": "^0.22.5"
2368
2368
  },
2369
2369
  "peerDependencies": {
2370
2370
  "@jimp/custom": ">=0.3.5"
2371
2371
  }
2372
2372
  },
2373
2373
  "node_modules/@jimp/plugin-flip": {
2374
- "version": "0.22.4",
2374
+ "version": "0.22.5",
2375
2375
  "license": "MIT",
2376
2376
  "peer": true,
2377
2377
  "dependencies": {
2378
- "@jimp/utils": "^0.22.4"
2378
+ "@jimp/utils": "^0.22.5"
2379
2379
  },
2380
2380
  "peerDependencies": {
2381
2381
  "@jimp/custom": ">=0.3.5",
@@ -2383,55 +2383,55 @@
2383
2383
  }
2384
2384
  },
2385
2385
  "node_modules/@jimp/plugin-gaussian": {
2386
- "version": "0.22.4",
2386
+ "version": "0.22.5",
2387
2387
  "license": "MIT",
2388
2388
  "peer": true,
2389
2389
  "dependencies": {
2390
- "@jimp/utils": "^0.22.4"
2390
+ "@jimp/utils": "^0.22.5"
2391
2391
  },
2392
2392
  "peerDependencies": {
2393
2393
  "@jimp/custom": ">=0.3.5"
2394
2394
  }
2395
2395
  },
2396
2396
  "node_modules/@jimp/plugin-invert": {
2397
- "version": "0.22.4",
2397
+ "version": "0.22.5",
2398
2398
  "license": "MIT",
2399
2399
  "peer": true,
2400
2400
  "dependencies": {
2401
- "@jimp/utils": "^0.22.4"
2401
+ "@jimp/utils": "^0.22.5"
2402
2402
  },
2403
2403
  "peerDependencies": {
2404
2404
  "@jimp/custom": ">=0.3.5"
2405
2405
  }
2406
2406
  },
2407
2407
  "node_modules/@jimp/plugin-mask": {
2408
- "version": "0.22.4",
2408
+ "version": "0.22.5",
2409
2409
  "license": "MIT",
2410
2410
  "peer": true,
2411
2411
  "dependencies": {
2412
- "@jimp/utils": "^0.22.4"
2412
+ "@jimp/utils": "^0.22.5"
2413
2413
  },
2414
2414
  "peerDependencies": {
2415
2415
  "@jimp/custom": ">=0.3.5"
2416
2416
  }
2417
2417
  },
2418
2418
  "node_modules/@jimp/plugin-normalize": {
2419
- "version": "0.22.4",
2419
+ "version": "0.22.5",
2420
2420
  "license": "MIT",
2421
2421
  "peer": true,
2422
2422
  "dependencies": {
2423
- "@jimp/utils": "^0.22.4"
2423
+ "@jimp/utils": "^0.22.5"
2424
2424
  },
2425
2425
  "peerDependencies": {
2426
2426
  "@jimp/custom": ">=0.3.5"
2427
2427
  }
2428
2428
  },
2429
2429
  "node_modules/@jimp/plugin-print": {
2430
- "version": "0.22.4",
2430
+ "version": "0.22.5",
2431
2431
  "license": "MIT",
2432
2432
  "peer": true,
2433
2433
  "dependencies": {
2434
- "@jimp/utils": "^0.22.4",
2434
+ "@jimp/utils": "^0.22.5",
2435
2435
  "load-bmfont": "^1.4.1"
2436
2436
  },
2437
2437
  "peerDependencies": {
@@ -2440,22 +2440,22 @@
2440
2440
  }
2441
2441
  },
2442
2442
  "node_modules/@jimp/plugin-resize": {
2443
- "version": "0.22.4",
2443
+ "version": "0.22.5",
2444
2444
  "license": "MIT",
2445
2445
  "peer": true,
2446
2446
  "dependencies": {
2447
- "@jimp/utils": "^0.22.4"
2447
+ "@jimp/utils": "^0.22.5"
2448
2448
  },
2449
2449
  "peerDependencies": {
2450
2450
  "@jimp/custom": ">=0.3.5"
2451
2451
  }
2452
2452
  },
2453
2453
  "node_modules/@jimp/plugin-rotate": {
2454
- "version": "0.22.4",
2454
+ "version": "0.22.5",
2455
2455
  "license": "MIT",
2456
2456
  "peer": true,
2457
2457
  "dependencies": {
2458
- "@jimp/utils": "^0.22.4"
2458
+ "@jimp/utils": "^0.22.5"
2459
2459
  },
2460
2460
  "peerDependencies": {
2461
2461
  "@jimp/custom": ">=0.3.5",
@@ -2465,11 +2465,11 @@
2465
2465
  }
2466
2466
  },
2467
2467
  "node_modules/@jimp/plugin-scale": {
2468
- "version": "0.22.4",
2468
+ "version": "0.22.5",
2469
2469
  "license": "MIT",
2470
2470
  "peer": true,
2471
2471
  "dependencies": {
2472
- "@jimp/utils": "^0.22.4"
2472
+ "@jimp/utils": "^0.22.5"
2473
2473
  },
2474
2474
  "peerDependencies": {
2475
2475
  "@jimp/custom": ">=0.3.5",
@@ -2477,11 +2477,11 @@
2477
2477
  }
2478
2478
  },
2479
2479
  "node_modules/@jimp/plugin-shadow": {
2480
- "version": "0.22.4",
2480
+ "version": "0.22.5",
2481
2481
  "license": "MIT",
2482
2482
  "peer": true,
2483
2483
  "dependencies": {
2484
- "@jimp/utils": "^0.22.4"
2484
+ "@jimp/utils": "^0.22.5"
2485
2485
  },
2486
2486
  "peerDependencies": {
2487
2487
  "@jimp/custom": ">=0.3.5",
@@ -2490,11 +2490,11 @@
2490
2490
  }
2491
2491
  },
2492
2492
  "node_modules/@jimp/plugin-threshold": {
2493
- "version": "0.22.4",
2493
+ "version": "0.22.5",
2494
2494
  "license": "MIT",
2495
2495
  "peer": true,
2496
2496
  "dependencies": {
2497
- "@jimp/utils": "^0.22.4"
2497
+ "@jimp/utils": "^0.22.5"
2498
2498
  },
2499
2499
  "peerDependencies": {
2500
2500
  "@jimp/custom": ">=0.3.5",
@@ -2503,31 +2503,31 @@
2503
2503
  }
2504
2504
  },
2505
2505
  "node_modules/@jimp/plugins": {
2506
- "version": "0.22.4",
2506
+ "version": "0.22.5",
2507
2507
  "license": "MIT",
2508
2508
  "peer": true,
2509
2509
  "dependencies": {
2510
- "@jimp/plugin-blit": "^0.22.4",
2511
- "@jimp/plugin-blur": "^0.22.4",
2512
- "@jimp/plugin-circle": "^0.22.4",
2513
- "@jimp/plugin-color": "^0.22.4",
2514
- "@jimp/plugin-contain": "^0.22.4",
2515
- "@jimp/plugin-cover": "^0.22.4",
2516
- "@jimp/plugin-crop": "^0.22.4",
2517
- "@jimp/plugin-displace": "^0.22.4",
2518
- "@jimp/plugin-dither": "^0.22.4",
2519
- "@jimp/plugin-fisheye": "^0.22.4",
2520
- "@jimp/plugin-flip": "^0.22.4",
2521
- "@jimp/plugin-gaussian": "^0.22.4",
2522
- "@jimp/plugin-invert": "^0.22.4",
2523
- "@jimp/plugin-mask": "^0.22.4",
2524
- "@jimp/plugin-normalize": "^0.22.4",
2525
- "@jimp/plugin-print": "^0.22.4",
2526
- "@jimp/plugin-resize": "^0.22.4",
2527
- "@jimp/plugin-rotate": "^0.22.4",
2528
- "@jimp/plugin-scale": "^0.22.4",
2529
- "@jimp/plugin-shadow": "^0.22.4",
2530
- "@jimp/plugin-threshold": "^0.22.4",
2510
+ "@jimp/plugin-blit": "^0.22.5",
2511
+ "@jimp/plugin-blur": "^0.22.5",
2512
+ "@jimp/plugin-circle": "^0.22.5",
2513
+ "@jimp/plugin-color": "^0.22.5",
2514
+ "@jimp/plugin-contain": "^0.22.5",
2515
+ "@jimp/plugin-cover": "^0.22.5",
2516
+ "@jimp/plugin-crop": "^0.22.5",
2517
+ "@jimp/plugin-displace": "^0.22.5",
2518
+ "@jimp/plugin-dither": "^0.22.5",
2519
+ "@jimp/plugin-fisheye": "^0.22.5",
2520
+ "@jimp/plugin-flip": "^0.22.5",
2521
+ "@jimp/plugin-gaussian": "^0.22.5",
2522
+ "@jimp/plugin-invert": "^0.22.5",
2523
+ "@jimp/plugin-mask": "^0.22.5",
2524
+ "@jimp/plugin-normalize": "^0.22.5",
2525
+ "@jimp/plugin-print": "^0.22.5",
2526
+ "@jimp/plugin-resize": "^0.22.5",
2527
+ "@jimp/plugin-rotate": "^0.22.5",
2528
+ "@jimp/plugin-scale": "^0.22.5",
2529
+ "@jimp/plugin-shadow": "^0.22.5",
2530
+ "@jimp/plugin-threshold": "^0.22.5",
2531
2531
  "timm": "^1.6.1"
2532
2532
  },
2533
2533
  "peerDependencies": {
@@ -2535,11 +2535,11 @@
2535
2535
  }
2536
2536
  },
2537
2537
  "node_modules/@jimp/png": {
2538
- "version": "0.22.4",
2538
+ "version": "0.22.5",
2539
2539
  "license": "MIT",
2540
2540
  "peer": true,
2541
2541
  "dependencies": {
2542
- "@jimp/utils": "^0.22.4",
2542
+ "@jimp/utils": "^0.22.5",
2543
2543
  "pngjs": "^6.0.0"
2544
2544
  },
2545
2545
  "peerDependencies": {
@@ -2547,7 +2547,7 @@
2547
2547
  }
2548
2548
  },
2549
2549
  "node_modules/@jimp/tiff": {
2550
- "version": "0.22.4",
2550
+ "version": "0.22.5",
2551
2551
  "license": "MIT",
2552
2552
  "peer": true,
2553
2553
  "dependencies": {
@@ -2558,15 +2558,15 @@
2558
2558
  }
2559
2559
  },
2560
2560
  "node_modules/@jimp/types": {
2561
- "version": "0.22.4",
2561
+ "version": "0.22.5",
2562
2562
  "license": "MIT",
2563
2563
  "peer": true,
2564
2564
  "dependencies": {
2565
- "@jimp/bmp": "^0.22.4",
2566
- "@jimp/gif": "^0.22.4",
2567
- "@jimp/jpeg": "^0.22.4",
2568
- "@jimp/png": "^0.22.4",
2569
- "@jimp/tiff": "^0.22.4",
2565
+ "@jimp/bmp": "^0.22.5",
2566
+ "@jimp/gif": "^0.22.5",
2567
+ "@jimp/jpeg": "^0.22.5",
2568
+ "@jimp/png": "^0.22.5",
2569
+ "@jimp/tiff": "^0.22.5",
2570
2570
  "timm": "^1.6.1"
2571
2571
  },
2572
2572
  "peerDependencies": {
@@ -2574,7 +2574,7 @@
2574
2574
  }
2575
2575
  },
2576
2576
  "node_modules/@jimp/utils": {
2577
- "version": "0.22.4",
2577
+ "version": "0.22.5",
2578
2578
  "license": "MIT",
2579
2579
  "peer": true,
2580
2580
  "dependencies": {
@@ -5721,7 +5721,7 @@
5721
5721
  "peer": true
5722
5722
  },
5723
5723
  "node_modules/electron-to-chromium": {
5724
- "version": "1.4.303",
5724
+ "version": "1.4.305",
5725
5725
  "dev": true,
5726
5726
  "license": "ISC"
5727
5727
  },
@@ -14375,7 +14375,7 @@
14375
14375
  }
14376
14376
  },
14377
14377
  "node_modules/semantic-release/node_modules/lru-cache": {
14378
- "version": "7.16.1",
14378
+ "version": "7.16.2",
14379
14379
  "dev": true,
14380
14380
  "license": "ISC",
14381
14381
  "engines": {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "mac",
7
7
  "XCTest"
8
8
  ],
9
- "version": "1.5.2",
9
+ "version": "1.5.3",
10
10
  "author": "Appium Contributors",
11
11
  "license": "Apache-2.0",
12
12
  "repository": {
@@ -1,79 +0,0 @@
1
- //
2
- // Generated by class-dump 3.5 (64 bit).
3
- //
4
- // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
5
- //
6
-
7
- #import "XCUIEventSynthesizing-Protocol.h"
8
-
9
- @class NSString, XCUIRemote, XCUISiriService;
10
-
11
- @interface XCUIDevice : NSObject
12
- {
13
- _Bool _isLocal;
14
- _Bool _isSimulatorDevice;
15
- long long _platform;
16
- id _accessibilityInterface; // <XCUIAccessibilityInterface>
17
- id _applicationMonitor; // <XCUIApplicationMonitor>
18
- id <XCUIEventSynthesizing> _eventSynthesizer;
19
- id _platformApplicationManager; // <XCUIApplicationManaging>
20
- id _xcodeApplicationManager; // <XCUIXcodeApplicationManaging>
21
- id _deviceEventAndStateInterface; // <XCUIDeviceEventAndStateInterface>
22
- id _applicationAutomationSessionProvider; // <XCUIApplicationAutomationSessionProviding>
23
- XCUISiriService *_siriService;
24
- id _screenDataSource; // <XCUIScreenDataSource>
25
- NSString *_uniqueIdentifier;
26
- XCUIRemote *_remote;
27
- id _interruptionMonitor; // <XCUIInterruptionMonitoring>
28
- id _resetAuthorizationStatusInterface; // <XCUIResetAuthorizationStatusOfProtectedResourcesInterface>
29
- id _diagnosticsProvider; // <XCUIDeviceDiagnostics>
30
- }
31
-
32
- + (id)sharedDevice;
33
- + (void)setLocalDevice:(id)arg1;
34
- + (id)localDevice;
35
- - (id)diagnosticsProvider;
36
- - (id)resetAuthorizationStatusInterface;
37
- - (id)interruptionMonitor;
38
- - (id)remote;
39
- - (_Bool)isSimulatorDevice;
40
- - (id)uniqueIdentifier;
41
- - (id)screenDataSource;
42
- - (id)applicationAutomationSessionProvider;
43
- - (id)deviceEventAndStateInterface;
44
- - (id)xcodeApplicationManager;
45
- - (id)platformApplicationManager;
46
- - (id <XCUIEventSynthesizing>)eventSynthesizer;
47
- - (id)applicationMonitor;
48
- - (id)accessibilityInterface;
49
- - (long long)platform;
50
- - (_Bool)isLocal;
51
- - (void)remoteAutomationSessionDidDisconnect:(id)arg1;
52
- - (void)attachLocalizableStringsData;
53
- - (void)rotateDigitalCrown:(double)arg1 velocity:(double)arg2;
54
- - (void)pressLockButton;
55
- - (void)holdHomeButtonForDuration:(double)arg1;
56
- - (void)pressButton:(long long)arg1;
57
- - (void)_silentPressButton:(long long)arg1;
58
- - (void)_setOrientation:(long long)arg1;
59
- @property(nonatomic) long long orientation;
60
- - (id)init;
61
- - (id)description;
62
- - (_Bool)isEqual:(id)arg1;
63
- - (unsigned long long)hash;
64
- - (id)spindumpAttachmentForProcessID:(int)arg1 error:(id *)arg2;
65
- - (id)makeDiagnosticScreenshotAttachmentForDevice;
66
- - (id)mainScreen;
67
- - (id)screens;
68
- - (id)mainScreenOrError:(id *)arg1;
69
- - (id)screensOrError:(id *)arg1;
70
- @property(readonly) XCUISiriService *siriService; // @synthesize siriService=_siriService;
71
- - (_Bool)supportsPressureInteraction;
72
- - (_Bool)performDeviceEvent:(id)arg1 error:(id *)arg2;
73
- - (_Bool)configuredForUITesting;
74
- - (id)diagnosticAttachmentsForError:(id)arg1;
75
- - (id)initWithDiagnosticProvider:(id)arg1;
76
- - (id)initLocalDeviceWithPlatform:(long long)arg1;
77
-
78
- @end
79
-
@@ -1,33 +0,0 @@
1
- /**
2
- * Copyright (c) 2015-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- */
9
-
10
- #import "XCTestSuite+AMPatcher.h"
11
-
12
- #import <objc/runtime.h>
13
-
14
- static void (*originalHandleIssue)(id, SEL, id);
15
-
16
- static void swizzledHandleIssue(id self, SEL _cmd, id issue)
17
- {
18
- [issue setValue:@(NO) forKey:@"_shouldInterruptTest"];
19
- originalHandleIssue(self, _cmd, issue);
20
- }
21
-
22
- @implementation XCTestSuite (AMPatcher)
23
-
24
- + (void)load
25
- {
26
- SEL originalHandleIssueSelector = NSSelectorFromString(@"handleIssue:");
27
- if (nil == originalHandleIssueSelector) return;
28
- Method originalHandleIssueMethod = class_getInstanceMethod(self.class, originalHandleIssueSelector);
29
- if (nil == originalHandleIssueMethod) return;
30
- originalHandleIssue = (void (*)(id, SEL, id)) method_setImplementation(originalHandleIssueMethod, (IMP)swizzledHandleIssue);
31
- }
32
-
33
- @end