Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
okhan-okbay-cko committed Jan 22, 2024
1 parent cd03e62 commit dfb0d73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ final class ExpiryDateEdgeCaseTests: XCTestCase {
let app = XCUIApplication()
app.launchFrames()

let currentMonth = String(Calendar.current.component(.month, from: Date()))
var currentMonth = String(Calendar.current.component(.month, from: Date()))
let currentYear = String(Calendar.current.component(.year, from: Date())).suffix(2)

let expiryTextField = app.otherElements[AccessibilityIdentifiers.PaymentForm.cardExpiry]
currentMonth = currentMonth.count == 1 ? "0" + currentMonth : currentMonth
app.enterText(currentMonth + currentYear, into: expiryTextField)
app.tapDoneButton()

Expand Down

0 comments on commit dfb0d73

Please sign in to comment.