mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +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:
@@ -78,12 +78,12 @@ class ComposerToolbarViewModelTests: XCTestCase {
|
||||
XCTAssertTrue(viewModel.state.bindings.composerFocused)
|
||||
}
|
||||
|
||||
func testRTEDisabledAfterSendingMessage() {
|
||||
func testRTEEnabledAfterSendingMessage() {
|
||||
viewModel.process(viewAction: .enableTextFormatting)
|
||||
XCTAssertTrue(viewModel.state.bindings.composerFocused)
|
||||
viewModel.state.composerEmpty = false
|
||||
viewModel.process(viewAction: .sendMessage)
|
||||
XCTAssertFalse(viewModel.state.bindings.composerActionsEnabled)
|
||||
XCTAssertTrue(viewModel.state.bindings.composerActionsEnabled)
|
||||
}
|
||||
|
||||
func testAlertIsShownAfterLinkAction() {
|
||||
|
||||
Reference in New Issue
Block a user