mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
+2
-4
@@ -14,16 +14,15 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
import RiotSwiftUI
|
||||
import XCTest
|
||||
|
||||
class SpaceSelectorUITests: MockScreenTestCase {
|
||||
|
||||
func testInitialDisplay() {
|
||||
app.goToScreenWithIdentifier(MockSpaceSelectorScreenState.initialList.title)
|
||||
|
||||
let disclosureButtons = app.buttons.matching(identifier: "disclosureButton").allElementsBoundByIndex
|
||||
XCTAssertEqual(disclosureButtons.count, MockSpaceSelectorService.defaultSpaceList.filter { $0.hasSubItems }.count)
|
||||
XCTAssertEqual(disclosureButtons.count, MockSpaceSelectorService.defaultSpaceList.filter(\.hasSubItems).count)
|
||||
|
||||
let notificationBadges = app.staticTexts.matching(identifier: "notificationBadge").allElementsBoundByIndex
|
||||
let itemsWithNotifications = MockSpaceSelectorService.defaultSpaceList.filter { $0.notificationCount > 0 || !$0.isJoined }
|
||||
@@ -65,5 +64,4 @@ class SpaceSelectorUITests: MockScreenTestCase {
|
||||
XCTAssertEqual(app.staticTexts["emptyListPlaceholderMessage"].exists, exists)
|
||||
XCTAssertEqual(app.buttons["createSpaceButton"].exists, exists)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-4
@@ -1,4 +1,4 @@
|
||||
//
|
||||
//
|
||||
// Copyright 2021 New Vector Ltd
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -14,13 +14,12 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
import Combine
|
||||
import XCTest
|
||||
|
||||
@testable import RiotSwiftUI
|
||||
|
||||
class SpaceSelectorViewModelTests: XCTestCase {
|
||||
|
||||
var service: MockSpaceSelectorService!
|
||||
var viewModel: SpaceSelectorViewModelProtocol!
|
||||
var context: SpaceSelectorViewModelType.Context!
|
||||
@@ -37,5 +36,4 @@ class SpaceSelectorViewModelTests: XCTestCase {
|
||||
XCTAssertEqual(context.viewState.items, MockSpaceSelectorService.defaultSpaceList)
|
||||
XCTAssertEqual(context.viewState.navigationTitle, VectorL10n.spaceSelectorTitle)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user