Skip to content

Commit bb31b19

Browse files
claudesinelaw
authored andcommitted
test: Fix cancel tests to match actual message spelling
Update tests to expect "cancelled" (British spelling) to match the actual i18n message "Search cancelled." instead of "Canceled".
1 parent 93fd613 commit bb31b19

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/e2e/command_palette.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn test_command_palette_cancel() {
109109

110110
// Prompt should be gone
111111
harness.assert_screen_not_contains("Command:");
112-
harness.assert_screen_contains("Canceled");
112+
harness.assert_screen_contains("cancelled");
113113
}
114114

115115
/// Test executing a command from the palette

tests/e2e/file_browser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ fn test_file_browser_cancel() {
320320

321321
// File browser should be closed
322322
harness.assert_screen_not_contains("Navigation:");
323-
harness.assert_screen_contains("Canceled");
323+
harness.assert_screen_contains("cancelled");
324324
}
325325

326326
/// Test that column headers are shown (Name, Size, Modified)

tests/e2e/open_folder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ fn test_switch_project_cancel_preserves_directory() {
310310

311311
// Folder browser should be closed
312312
harness.assert_screen_not_contains("Navigation:");
313-
harness.assert_screen_contains("Canceled");
313+
harness.assert_screen_contains("cancelled");
314314
}
315315

316316
/// Test that folder browser can navigate using backspace to go to parent

tests/e2e/prompt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ fn test_prompt_cancel() {
9696
harness.send_key(KeyCode::Esc, KeyModifiers::NONE).unwrap();
9797
harness.render().unwrap();
9898

99-
// Prompt should be gone, and "Canceled" message should appear
99+
// Prompt should be gone, and "cancelled" message should appear
100100
harness.assert_screen_not_contains("Open:");
101-
harness.assert_screen_contains("Canceled");
101+
harness.assert_screen_contains("cancelled");
102102
}
103103

104104
/// Test the complete open file workflow

0 commit comments

Comments
 (0)