Skip to content

Commit 438dd1d

Browse files
committed
tmp; fix tests
1 parent b6ee556 commit 438dd1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/widgets/compose_box_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,8 +1525,8 @@ void main() {
15251525
state.startEditInteraction(messageId: message.id, originalRawContent: 'foo');
15261526
await tester.pump();
15271527
final (actionButton, cancelButton) = checkSuggestedActionDialog(tester,
1528-
expectedTitle: 'Discard draft?',
1529-
expectedMessage: 'Progress on your current message will be lost. This cannot be undone.',
1528+
expectedTitle: 'Discard the message you’re writing?',
1529+
expectedMessage: 'When you edit a message, the content that was previously in the compose box is discarded.',
15301530
expectedActionButtonText: 'Discard');
15311531

15321532
await tester.tap(find.byWidget(cancelButton));
@@ -1548,8 +1548,8 @@ void main() {
15481548
state.startEditInteraction(messageId: message.id, originalRawContent: 'foo');
15491549
await tester.pump();
15501550
final (actionButton, cancelButton) = checkSuggestedActionDialog(tester,
1551-
expectedTitle: 'Discard draft?',
1552-
expectedMessage: 'Progress on your current message will be lost. This cannot be undone.',
1551+
expectedTitle: 'Discard the message you’re writing?',
1552+
expectedMessage: 'When you edit a message, the content that was previously in the compose box is discarded.',
15531553
expectedActionButtonText: 'Discard');
15541554

15551555
await tester.tap(find.byWidget(actionButton));

0 commit comments

Comments
 (0)