fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user