Configured and applied SwiftFormat

This commit is contained in:
Stefan Ceriu
2022-09-27 10:17:22 +03:00
committed by Stefan Ceriu
parent ff2e6ddfa7
commit 43c28d23b7
663 changed files with 2329 additions and 2840 deletions
@@ -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)
}
}