Skip to content

Instantly share code, notes, and snippets.

@mpahuja
Created September 24, 2019 06:31
Show Gist options
  • Save mpahuja/becd2fea0f81a3e016f4900c896c0154 to your computer and use it in GitHub Desktop.
Save mpahuja/becd2fea0f81a3e016f4900c896c0154 to your computer and use it in GitHub Desktop.
UITests - MapViewTests
import XCTest
class MapViewTests: BaseTest {
func testMapLocation() {
XCTContext.runActivity(named: "Test Map and pointer are rendered") { _ in
mapViewPage.tapThirdViewTab()
XCTAssertTrue(mapViewPage.isMapDisplayed())
XCTAssertTrue(mapViewPage.isPointerDisplayed())
}
XCTContext.runActivity(named: "Test Correct location is being shown") { _ in
// Assert default location when launch the app is of same lat and long as set in the app.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment