Run SwiftFormat.

This commit is contained in:
Doug
2026-05-27 14:38:50 +01:00
committed by Doug
parent 5138e05e47
commit fa67713726
573 changed files with 2426 additions and 2426 deletions
+14 -14
View File
@@ -39,7 +39,7 @@ class UserSessionScreenTests: XCTestCase {
app.swipeDown() // Make sure the header shows a large title
try await app.assertScreenshot(step: Step.homeScreen)
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
XCTAssert(app.buttons[firstRoomName].waitForExistence(timeout: 5.0))
try await Task.sleep(for: .seconds(1))
@@ -53,7 +53,7 @@ class UserSessionScreenTests: XCTestCase {
let latestMessage = app.textViews.matching(NSPredicate(format: "value CONTAINS 'sugar honey ice'")).firstMatch
XCTAssert(latestMessage.waitForExistence(timeout: 5.0))
// Tapping on the mesage text view or the cell doesn't work.
// Use the sender static text instead.
let latestEventSender = app.staticTexts["@test.matrix.org"]
@@ -72,29 +72,29 @@ class UserSessionScreenTests: XCTestCase {
let latestEditedMessage = app.textViews.matching(NSPredicate(format: "value CONTAINS 'sugar honey ice & tea'")).firstMatch
XCTAssert(latestEditedMessage.waitForExistence(timeout: 5.0))
app.buttons[A11yIdentifiers.roomScreen.composerToolbar.openComposeOptions].tap(.center)
try await app.assertScreenshot(step: Step.composerAttachments)
}
func testUserSessionReply() async throws {
let app = Application.launch(.userSessionScreenReply, disableTimelineAccessibility: false)
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
XCTAssert(app.buttons[firstRoomName].waitForExistence(timeout: 5.0))
try await Task.sleep(for: .seconds(1))
let cell = app.cells.element(boundBy: 1) // Skip the typing indicator cell
cell.swipeRight(velocity: .slow) // The iOS 26 simulator doesn't like a fast swipe.
try await app.assertScreenshot()
}
func testElementCall() {
let app = Application.launch(.userSessionScreen)
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
XCTAssert(app.buttons[firstRoomName].waitForExistence(timeout: 5.0))
app.buttons[A11yIdentifiers.roomScreen.joinCall].tap()
let textField = app.textFields["Display name"]
@@ -106,7 +106,7 @@ class UserSessionScreenTests: XCTestCase {
func testRoomDetails() {
let app = Application.launch(.userSessionScreen)
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
XCTAssert(app.buttons[firstRoomName].waitForExistence(timeout: 5.0))
@@ -124,7 +124,7 @@ class UserSessionScreenTests: XCTestCase {
attempts += 1
}
}
// Open the room members list.
app.buttons[A11yIdentifiers.roomDetailsScreen.people].tap()
@@ -150,7 +150,7 @@ class UserSessionScreenTests: XCTestCase {
func testPhotoSharing() {
let app = Application.launch(.userSessionScreen)
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
XCTAssert(app.buttons[firstRoomName].waitForExistence(timeout: 5.0))
@@ -165,7 +165,7 @@ class UserSessionScreenTests: XCTestCase {
func testDocumentSharing() {
let app = Application.launch(.userSessionScreen)
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
XCTAssert(app.buttons[firstRoomName].waitForExistence(timeout: 5.0))
@@ -175,7 +175,7 @@ class UserSessionScreenTests: XCTestCase {
func testLocationSharing() {
let app = Application.launch(.userSessionScreen)
app.buttons[A11yIdentifiers.homeScreen.roomName(firstRoomName)].tap()
XCTAssert(app.buttons[firstRoomName].waitForExistence(timeout: 5.0))