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
+15 -15
View File
@@ -12,10 +12,10 @@ import XCTest
class RoomScreenUITests: XCTestCase {
func testPlainNoAvatar() async throws {
let app = Application.launch(.roomPlainNoAvatar)
XCTAssert(app.buttons[A11yIdentifiers.roomScreen.name].exists)
XCTAssert(app.buttons[A11yIdentifiers.roomScreen.avatar].exists)
try await app.assertScreenshot()
}
@@ -37,7 +37,7 @@ class RoomScreenUITests: XCTestCase {
// When a back pagination occurs and an incoming message arrives.
try await performOperation(.incomingMessage, using: client)
try await performOperation(.paginate, using: client)
// Then the 4 visible messages should stay aligned to the bottom.
try await app.assertScreenshot()
}
@@ -52,7 +52,7 @@ class RoomScreenUITests: XCTestCase {
// When a large back pagination occurs.
try await performOperation(.paginate, using: client)
// The bottom of the timeline should remain visible with more items added above.
try await app.assertScreenshot()
}
@@ -73,11 +73,11 @@ class RoomScreenUITests: XCTestCase {
// When a back pagination occurs.
try await performOperation(.paginate, using: client)
// Then the bottom of the timeline should remain unchanged (with new items having been added above).
try await app.assertScreenshot()
}
func testTimelineLayoutAtBottom() async throws {
let client = try UITestsSignalling.Client(mode: .tests)
@@ -126,32 +126,32 @@ class RoomScreenUITests: XCTestCase {
// Then the item should also be highlighted and scrolled to in the same state as before.
try await app.assertScreenshot()
}
func testTimelineReadReceipts() async throws {
let app = Application.launch(.roomSmallTimelineWithReadReceipts)
// The messages should be bottom aligned.
try await app.assertScreenshot()
}
func testTimelineDisclosedPolls() async throws {
let app = Application.launch(.roomWithDisclosedPolls)
try await app.assertScreenshot()
}
func testTimelineUndisclosedPolls() async throws {
let app = Application.launch(.roomWithUndisclosedPolls)
try await app.assertScreenshot()
}
func testTimelineOutgoingPolls() async throws {
let app = Application.launch(.roomWithOutgoingPolls)
try await app.assertScreenshot()
}
// MARK: - Helper Methods
private func performOperation(_ operation: UITestsSignal.Timeline, using client: UITestsSignalling.Client) async throws {