A WIP iOS app for Mastodon and Pleroma.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OnboardingTests.swift 783B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // OnboardingTests.swift
  3. // TuskerUITests
  4. //
  5. // Created by Shadowfacts on 12/21/19.
  6. // Copyright © 2019 Shadowfacts. All rights reserved.
  7. //
  8. import XCTest
  9. import Ambassador
  10. class OnboardingTests: TuskerUITests {
  11. override func setUp() {
  12. super.setUp()
  13. router.instanceRoutes()
  14. app.launch()
  15. }
  16. // can't test logging in because there's no way of interacting with the safari VC that's used in the OAuth flow
  17. func testCustomInstanceAppears() {
  18. let searchField = app.searchFields.element
  19. searchField.tap()
  20. searchField.typeText("http://localhost:8080")
  21. XCTAssertTrue(app.staticTexts["localhost"].exists)
  22. XCTAssertTrue(app.staticTexts["An instance description"].exists)
  23. }
  24. }