Skip to content

Commit b7e236f

Browse files
authored
Fix iPhone UI test failure in trunk from customer details address form (#15969)
2 parents 2d54605 + b432a68 commit b7e236f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ public final class CustomerDetailsScreen: ScreenObject {
4040
@discardableResult
4141
public func enterCustomerDetails(name: String) throws -> UnifiedOrderScreen {
4242
billingFirstNameField.tap()
43-
billingFirstNameField.typeText(name)
43+
// `\n` was added after the first name input in order to dismiss the keyboard so that the address toggle is interactive in shorter screens.
44+
billingFirstNameField.typeText("\(name)\n")
45+
let tableView = app.tables.firstMatch
46+
tableView.swipeUp()
4447
addressToggleSet(to: "1")
48+
tableView.swipeUp()
4549
shippingFirstNameField.tap()
4650
shippingFirstNameField.typeText(name)
4751
doneButton.tap()

0 commit comments

Comments
 (0)