Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 4aa0594

Browse files
author
Emmanuel Garcia
committed
Fix test
1 parent e3f8a99 commit 4aa0594

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/scenario_app/ios/Scenarios/ScenariosUITests/PlatformViewGestureRecognizerTests.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ - (void)testRejectPolicyUtilTouchesEnded {
2525
[NSPredicate predicateWithBlock:^BOOL(id _Nullable evaluatedObject,
2626
NSDictionary<NSString*, id>* _Nullable bindings) {
2727
XCUIElement* element = evaluatedObject;
28-
return [element.identifier isEqualToString:@"platform_view"];
28+
return [element.identifier hasPrefix:@"platform_view"];
2929
}];
3030
XCUIElement* platformView = [app.textViews elementMatchingPredicate:predicateToFindPlatformView];
3131
if (![platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView]) {
@@ -56,7 +56,7 @@ - (void)testRejectPolicyEager {
5656
[NSPredicate predicateWithBlock:^BOOL(id _Nullable evaluatedObject,
5757
NSDictionary<NSString*, id>* _Nullable bindings) {
5858
XCUIElement* element = evaluatedObject;
59-
return [element.identifier isEqualToString:@"platform_view"];
59+
return [element.identifier hasPrefix:@"platform_view"];
6060
}];
6161
XCUIElement* platformView = [app.textViews elementMatchingPredicate:predicateToFindPlatformView];
6262
if (![platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView]) {
@@ -91,7 +91,7 @@ - (void)testAccept {
9191
[NSPredicate predicateWithBlock:^BOOL(id _Nullable evaluatedObject,
9292
NSDictionary<NSString*, id>* _Nullable bindings) {
9393
XCUIElement* element = evaluatedObject;
94-
return [element.identifier isEqualToString:@"platform_view"];
94+
return [element.identifier hasPrefix:@"platform_view"];
9595
}];
9696
XCUIElement* platformView = [app.textViews elementMatchingPredicate:predicateToFindPlatformView];
9797
if (![platformView waitForExistenceWithTimeout:kSecondsToWaitForPlatformView]) {

0 commit comments

Comments
 (0)