mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Add RTE formatting buttons (#1614)
* Add RTE formatting buttons * Update UUID as stored properties * Disable autocorrection on URL fields * Alert ids to let * Add ComposerToolbar_Previews * Cleanup * Cleanup * Refactor FormatItem colors * Fix composer layout issue * Fix ui tests * Nest ComposerToolbar A11y ids under RoomScreen * Add composer reply ui tests * Add UTs --------- Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
This commit is contained in:
@@ -21,21 +21,28 @@ import XCTest
|
||||
class UserSessionScreenTests: XCTestCase {
|
||||
func testUserSessionFlows() async throws {
|
||||
let roomName = "First room"
|
||||
|
||||
let app = Application.launch(.userSessionScreen)
|
||||
|
||||
try await app.assertScreenshot(.userSessionScreen, step: 1)
|
||||
|
||||
|
||||
app.buttons[A11yIdentifiers.homeScreen.roomName(roomName)].tap()
|
||||
|
||||
XCTAssert(app.staticTexts[roomName].waitForExistence(timeout: 5.0))
|
||||
|
||||
try await Task.sleep(for: .seconds(1))
|
||||
|
||||
try await app.assertScreenshot(.userSessionScreen, step: 2)
|
||||
|
||||
app.buttons[A11yIdentifiers.roomScreen.attachmentPicker].tap()
|
||||
|
||||
|
||||
app.buttons[A11yIdentifiers.roomScreen.composerToolbar.openComposeOptions].tap()
|
||||
try await app.assertScreenshot(.userSessionScreen, step: 3)
|
||||
}
|
||||
|
||||
func testUserSessionReply() async throws {
|
||||
let roomName = "First room"
|
||||
let app = Application.launch(.userSessionScreenReply, disableTimelineAccessibility: false)
|
||||
app.buttons[A11yIdentifiers.homeScreen.roomName(roomName)].tap()
|
||||
XCTAssert(app.staticTexts[roomName].waitForExistence(timeout: 5.0))
|
||||
try await Task.sleep(for: .seconds(1))
|
||||
|
||||
let cell = app.cells.firstMatch
|
||||
cell.swipeRight(velocity: .fast)
|
||||
|
||||
try await app.assertScreenshot(.userSessionScreenReply)
|
||||
}
|
||||
}
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2d62a74c1b78bd48824bf06d97344c49f30fb5db1bd1c87b960e8f5ce20a0227
|
||||
size 330298
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:33826c63e307b6990c1b890699f0aebfc855819c8d9dabeea76d65c2cf6dd64c
|
||||
size 291077
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f508eff9ade01d498119147fd543ffdd363a40fa2cc2865710eb59283813e5d0
|
||||
size 332447
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:51a6d371dc7b105205e5aea957b084752106c7d046098a84c15f7dcdde9742dc
|
||||
size 291289
|
||||
Reference in New Issue
Block a user