mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Rich text editor "expanded mode" (#1656)
* Fix composer icon in dark mode * Add RTE poc * Amend cornerRadius * Add snaps * Fix composer top spacing * Fix clipping * Refine UX * Fix animation * Add constants + iPad hide bars logics * Polish clamping * Fix UT * Cleanup * Add grabber color * Add UI tests * Rename handle -> grabber * Fix resize composer when RTE is off * Fix project file
This commit is contained in:
@@ -45,4 +45,19 @@ class UserSessionScreenTests: XCTestCase {
|
||||
|
||||
try await app.assertScreenshot(.userSessionScreenReply)
|
||||
}
|
||||
|
||||
func testUserSessionRTE() async throws {
|
||||
let roomName = "First room"
|
||||
let app = Application.launch(.userSessionScreenRTE)
|
||||
|
||||
app.buttons[A11yIdentifiers.homeScreen.roomName(roomName)].tap()
|
||||
XCTAssert(app.staticTexts[roomName].waitForExistence(timeout: 5.0))
|
||||
try await Task.sleep(for: .seconds(1))
|
||||
|
||||
app.buttons[A11yIdentifiers.roomScreen.composerToolbar.openComposeOptions].tap()
|
||||
try await app.assertScreenshot(.userSessionScreenRTE, step: 1)
|
||||
|
||||
app.buttons[A11yIdentifiers.roomScreen.attachmentPickerTextFormatting].tap()
|
||||
try await app.assertScreenshot(.userSessionScreenRTE, step: 2)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user