mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 10:02:46 +02:00
5982: Apply PR comments
This commit is contained in:
+3
-3
@@ -18,7 +18,7 @@ import XCTest
|
||||
import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class StaticLocationSharingViewerUITests: MockScreenTest {
|
||||
class StaticLocationViewingUITests: MockScreenTest {
|
||||
|
||||
private var app: XCUIApplication!
|
||||
|
||||
@@ -30,10 +30,10 @@ class StaticLocationSharingViewerUITests: MockScreenTest {
|
||||
}
|
||||
|
||||
func testInitialExistingLocation() {
|
||||
goToScreenWithIdentifier(MockStaticLocationSharingViewerScreenState.showUserLocation.title)
|
||||
goToScreenWithIdentifier(MockStaticLocationViewingScreenState.showUserLocation.title)
|
||||
|
||||
XCTAssertTrue(app.buttons["Cancel"].exists)
|
||||
XCTAssertTrue(app.buttons["LocationSharingView.shareButton"].exists)
|
||||
XCTAssertTrue(app.buttons["StaticLocationView.shareButton"].exists)
|
||||
XCTAssertTrue(app.otherElements["Map"].exists)
|
||||
}
|
||||
}
|
||||
+6
-6
@@ -21,7 +21,7 @@ import CoreLocation
|
||||
@testable import RiotSwiftUI
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
class StaticLocationSharingViewerViewModelTests: XCTestCase {
|
||||
class StaticLocationViewingViewModelTests: XCTestCase {
|
||||
|
||||
var cancellables = Set<AnyCancellable>()
|
||||
|
||||
@@ -81,10 +81,10 @@ class StaticLocationSharingViewerViewModelTests: XCTestCase {
|
||||
waitForExpectations(timeout: 3)
|
||||
}
|
||||
|
||||
private func buildViewModel() -> StaticLocationSharingViewerViewModel {
|
||||
StaticLocationSharingViewerViewModel(mapStyleURL: URL(string: "http://empty.com")!,
|
||||
avatarData: AvatarInput(mxContentUri: "", matrixItemId: "", displayName: ""),
|
||||
location: CLLocationCoordinate2D(latitude: 51.4932641, longitude: -0.257096),
|
||||
coordinateType: .user)
|
||||
private func buildViewModel() -> StaticLocationViewingViewModel {
|
||||
StaticLocationViewingViewModel(mapStyleURL: URL(string: "http://empty.com")!,
|
||||
avatarData: AvatarInput(mxContentUri: "", matrixItemId: "", displayName: ""),
|
||||
location: CLLocationCoordinate2D(latitude: 51.4932641, longitude: -0.257096),
|
||||
coordinateType: .user)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user