Skip to content

Instantly share code, notes, and snippets.

@cipolleschi
Created August 9, 2020 09:54
Show Gist options
  • Select an option

  • Save cipolleschi/88be8db1304bfe69c339811343a79765 to your computer and use it in GitHub Desktop.

Select an option

Save cipolleschi/88be8db1304bfe69c339811343a79765 to your computer and use it in GitHub Desktop.
class LegalTests: XCTestCase {
var app: XCUIApplication!
var tosButton: XCUIElement!
var privacyButton: XCUIElement!
var continueButton: XCUIElement!
var homeScreen: XCUIElement?
override func setUpWithError() throws {
try super.setUpWithError()
continueAfterFailure = false
self.app = XCUIApplication()
self.app.launch()
self.tosButton = app.buttons[LegalView.AccessibilityIdentifiers.tosButton.rawValue]
self.privacyButton = app.buttons[LegalView.AccessibilityIdentifiers.privacyButton.rawValue]
self.continueButton = app.buttons[LegalView.AccessibilityIdentifiers.continueButton.rawValue]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment