Created
June 23, 2021 20:16
-
-
Save aataraxiaa/78ed18d79b5d85963f9b32a58e2324d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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