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 @@ -35,8 +35,8 @@ public class EditorPostSettings: ScreenObject {
$0.buttons["Next Month"]
}

private let firstCalendarDayLabelGetter: (XCUIApplication) -> XCUIElement = {
$0.staticTexts["1"]
private let firstCalendarDayButtonGetter: (XCUIApplication) -> XCUIElement = {
$0.buttons.containing(.staticText, identifier: "1").element
}

private let doneButtonGetter: (XCUIApplication) -> XCUIElement = {
Expand All @@ -48,7 +48,7 @@ public class EditorPostSettings: ScreenObject {
var dateSelector: XCUIElement { dateSelectorGetter(app) }
var doneButton: XCUIElement { doneButtonGetter(app) }
var featuredImageButton: XCUIElement { featuredImageButtonGetter(app) }
var firstCalendarDayLabel: XCUIElement { firstCalendarDayLabelGetter(app) }
var firstCalendarDayButton: XCUIElement { firstCalendarDayButtonGetter(app) }
var nextMonthButton: XCUIElement { nextMonthButtonGetter(app) }
var publishDateButton: XCUIElement { publishDateButtonGetter(app) }
var settingsTable: XCUIElement { settingsTableGetter(app) }
Expand Down Expand Up @@ -137,7 +137,7 @@ public class EditorPostSettings: ScreenObject {

// Selects the first day of the next month
nextMonthButton.tap()
firstCalendarDayLabel.tap()
firstCalendarDayButton.tap()

doneButton.tap()
return self
Expand Down