in HostApp/HostAppUITests/AMLMapViewScreen.swift [37:59]
func testAttributionFlow() -> Self {
// Get attribution button
let attributionButton = app.buttons[Identifiers.attributionButton]
XCTAssert(attributionButton.exists)
// Get attribution text
let attributionText = app.staticTexts[Identifiers.attributionText]
// Attribution text hidden until attribution button tapped
XCTAssertFalse(attributionText.isHittable)
// Tap attribution button to show attribution text
attributionButton.tap()
// Attribution text visible
XCTAssertTrue(attributionText.isHittable)
XCTAssertFalse(attributionButton.isHittable)
// Tap attribution text to hide attribution text
attributionText.tap()
// Attribution button visible again.
XCTAssertTrue(attributionButton.isHittable)
XCTAssertFalse(attributionText.isHittable)
return self
}