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:
Alfonso Grillo
2023-09-11 09:54:37 +02:00
committed by GitHub
parent 89c4786af7
commit bd4ee92124
23 changed files with 215 additions and 24 deletions
@@ -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)
}
}
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d7f556db626ee3ed168db298001c1b96c5e7d14a22388bb115eb3dfd2c4ccab
size 404694
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:acf654f8fee9ec9db076a8a170618776dee89800ca5b227dafd779d6db45827d
size 327770
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6403aaef45f204a3de0ac10e0a1258226930ca821174a25bf3a596c60e8c316
size 252152
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a002779814ca094c20052a22a87057fd669ca975819dd7a006befefa97692e20
size 278085
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c3a91f32ae1b082fd0bfff8f51b273ae76544ed2570362f6b7195116ff2dc5c7
size 390489
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5075ddecf5997355ad6938fe5587e6763c87d3aa8ead6adf5d781f37a279e72
size 329962
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b59ef2cf7292221d20be32da9f81a524c0b9246127debc75ce3ceae671b1e209
size 260379
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:489bc71a45a9f943b164f69e085a70e70eac781bd2fdfee7750071936c848eb1
size 278264