This commit is contained in:
Mikhail Kilin
2026-02-13 19:52:53 +03:00
parent 6d08300daa
commit 6639dc876c
38 changed files with 961 additions and 123 deletions

View File

@@ -31,6 +31,7 @@ fn snapshot_input_with_text() {
let mut app = TestAppBuilder::new()
.with_chat(chat)
.selected_chat(123)
.insert_mode()
.message_input("Hello, how are you?")
.build();
@@ -52,6 +53,7 @@ fn snapshot_input_long_text_2_lines() {
let mut app = TestAppBuilder::new()
.with_chat(chat)
.selected_chat(123)
.insert_mode()
.message_input(long_text)
.build();
@@ -73,6 +75,7 @@ fn snapshot_input_long_text_max_lines() {
let mut app = TestAppBuilder::new()
.with_chat(chat)
.selected_chat(123)
.insert_mode()
.message_input(very_long_text)
.build();
@@ -95,6 +98,7 @@ fn snapshot_input_editing_mode() {
.with_chat(chat)
.with_message(123, message)
.selected_chat(123)
.insert_mode()
.editing_message(1, 0)
.message_input("Edited text here")
.build();
@@ -118,6 +122,7 @@ fn snapshot_input_reply_mode() {
.with_chat(chat)
.with_message(123, original_msg)
.selected_chat(123)
.insert_mode()
.replying_to(1)
.message_input("I think it's great!")
.build();