From d8968e9004980569d191dd75235a662146fc9a3a Mon Sep 17 00:00:00 2001 From: Justin Warmkessel Date: Thu, 6 Feb 2025 09:03:17 -0800 Subject: [PATCH 1/2] Fixing on of the failing unit tests --- .../ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift b/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift index 33fcc5205..8b3006c13 100644 --- a/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift +++ b/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift @@ -24,7 +24,7 @@ class ThreeDSecure_V2_UITests: XCTestCase { waitForElementToAppear(app.staticTexts["Purchase Authentication"], timeout: .threeDSecureTimeout) - let textField = app.textFields.element(boundBy: 0) + let textField = app.textFields.element(boundBy: 1) waitForElementToBeHittable(textField) textField.forceTapElement() sleep(2) @@ -44,7 +44,8 @@ class ThreeDSecure_V2_UITests: XCTestCase { waitForElementToAppear(app.staticTexts["Purchase Authentication"], timeout: .threeDSecureTimeout) - let textField = app.textFields.element(boundBy: 0) + let textField = app.secureTextFields.element(boundBy: 0) + waitForElementToBeHittable(textField) textField.forceTapElement() sleep(2) From 74a6ba3d1dcf376c1b462380f0303ca5a7c06328 Mon Sep 17 00:00:00 2001 From: Justin Warmkessel Date: Fri, 14 Feb 2025 10:52:06 -1000 Subject: [PATCH 2/2] Update unit test --- .../ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift b/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift index 8b3006c13..0b14e99ad 100644 --- a/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift +++ b/Demo/UI Tests/ThreeDSecure UI Tests/ThreeDSecure_V2_UITests.swift @@ -44,7 +44,7 @@ class ThreeDSecure_V2_UITests: XCTestCase { waitForElementToAppear(app.staticTexts["Purchase Authentication"], timeout: .threeDSecureTimeout) - let textField = app.secureTextFields.element(boundBy: 0) + let textField = app.textFields.element(boundBy: 1) waitForElementToBeHittable(textField) textField.forceTapElement()