diff options
| author | Aram Drevekenin <aram@poor.dev> | 2025-07-18 10:05:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-18 10:05:32 +0200 |
| commit | 44a3c1dae916241d3c8e1a1268373b9131af8e5b (patch) | |
| tree | 87aa9cea47abf4d1117d1bfe96001b5bc21f0ab8 /src/tests | |
| parent | fix(tabs): do not send release event to inactive tab (#4300) (diff) | |
| download | sl0ppij-44a3c1dae916241d3c8e1a1268373b9131af8e5b.tar.gz sl0ppij-44a3c1dae916241d3c8e1a1268373b9131af8e5b.tar.xz sl0ppij-44a3c1dae916241d3c8e1a1268373b9131af8e5b.zip | |
fix(grid): account for wide characters when double-triple mouse clicking (#4302)
* fix(grid): account for wide characters when double-triple mouse clicking
* fix(e2e): moar race conditions
* docs(changelog): add PR
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/e2e/cases.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/e2e/cases.rs b/src/tests/e2e/cases.rs index c122f9f8..c0e50056 100644 --- a/src/tests/e2e/cases.rs +++ b/src/tests/e2e/cases.rs @@ -101,10 +101,14 @@ fn account_for_races_in_snapshot(snapshot: String) -> String { // once that happens, we should be able to remove this hack (and adjust the snapshots for the // trailing spaces that we had to get rid of here) let base_replace = Regex::new(r"Alt <\[\]> BASE \s*\n").unwrap(); - let base_replace_tmux_mode = Regex::new(r"Alt \[\|SPACE\|Alt \] BASE \s*\n").unwrap(); + let base_replace_tmux_mode_1 = Regex::new(r"Alt \[\|SPACE\|Alt \] BASE \s*\n").unwrap(); + let base_replace_tmux_mode_2 = Regex::new(r"Alt \[\|Alt \]\|SPACE BASE \s*\n").unwrap(); let eol_arrow_replace = Regex::new(r"\s*\n").unwrap(); let snapshot = base_replace.replace_all(&snapshot, "\n").to_string(); - let snapshot = base_replace_tmux_mode + let snapshot = base_replace_tmux_mode_1 + .replace_all(&snapshot, "\n") + .to_string(); + let snapshot = base_replace_tmux_mode_2 .replace_all(&snapshot, "\n") .to_string(); let snapshot = eol_arrow_replace.replace_all(&snapshot, "\n").to_string(); |
