Skip to content

Commit 76ce343

Browse files
committed
Fix iPhone UI test failure from the new address picker CTA pushing down the address toggle by dismissing the keyboard with \n in the text field.
1 parent bdbc520 commit 76ce343

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/Sources/UITestsFoundation/Screens/Orders/CustomerDetailsScreen.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ public final class CustomerDetailsScreen: ScreenObject {
4040
@discardableResult
4141
public func enterCustomerDetails(name: String) throws -> UnifiedOrderScreen {
4242
billingFirstNameField.tap()
43-
billingFirstNameField.typeText(name)
43+
billingFirstNameField.typeText("\(name)\n")
44+
let tableView = app.tables.firstMatch
45+
tableView.swipeUp()
4446
addressToggleSet(to: "1")
47+
tableView.swipeUp()
4548
shippingFirstNameField.tap()
4649
shippingFirstNameField.typeText(name)
4750
doneButton.tap()

0 commit comments

Comments
 (0)