Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ public final class CustomerDetailsScreen: ScreenObject {
@discardableResult
public func enterCustomerDetails(name: String) throws -> UnifiedOrderScreen {
billingFirstNameField.tap()
billingFirstNameField.typeText(name)
// `\n` was added after the first name input in order to dismiss the keyboard so that the address toggle is interactive in shorter screens.
billingFirstNameField.typeText("\(name)\n")
Comment on lines +43 to +44
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using \n to dismiss the keyboard is a workaround that may not be reliable across different iOS versions or keyboard configurations. Consider using a more explicit keyboard dismissal method such as tapping a done button or using app.keyboards.buttons["Done"].tap() if available.

Suggested change
// `\n` was added after the first name input in order to dismiss the keyboard so that the address toggle is interactive in shorter screens.
billingFirstNameField.typeText("\(name)\n")
// Tap the done button to dismiss the keyboard after entering the first name.
billingFirstNameField.typeText(name)
doneButton.tap()

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Done" can be unreliable as well, as the OS can change the keyboard return button in future iOS versions.

let tableView = app.tables.firstMatch
tableView.swipeUp()
addressToggleSet(to: "1")
tableView.swipeUp()
Comment on lines 47 to +48

This comment was marked as off-topic.

shippingFirstNameField.tap()
shippingFirstNameField.typeText(name)
doneButton.tap()
Expand Down