Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aataraxiaa/78ed18d79b5d85963f9b32a58e2324d8 to your computer and use it in GitHub Desktop.
Save aataraxiaa/78ed18d79b5d85963f9b32a58e2324d8 to your computer and use it in GitHub Desktop.
import XCTest
// MARK: - Actions
struct ShowBugRobot {
@discardableResult
func tapShowBugButton(file: StaticString = #file, line: UInt = #line) -> Self {
let button = ShowBugPage.Buttons.showBugButton
XCTAssertTrue(button.exists, "Show bug button does not exist", file: file, line: line)
button.tap()
return self
}
@discardableResult
func tapShowBugAlertOkButton(file: StaticString = #file, line: UInt = #line) -> Self {
let button = ShowBugPage.Buttons.okButton
XCTAssertTrue(button.exists, "Show bug alert ok button does not exist", file: file, line: line)
button.tap()
return self
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment