diff options
| author | raphCode <15750438+raphCode@users.noreply.github.com> | 2022-05-03 18:55:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-03 18:55:31 +0200 |
| commit | 7b0a46f812f0c0f60068742ea2984b88b6ad8ed5 (patch) | |
| tree | 2bd10a719c9cbc2ba5e7cacd0b3fcc0dd2719caa /src/tests/e2e/cases.rs | |
| parent | docs(changelog): middle or right click selection fix (diff) | |
| download | sl0ppij-7b0a46f812f0c0f60068742ea2984b88b6ad8ed5.tar.gz sl0ppij-7b0a46f812f0c0f60068742ea2984b88b6ad8ed5.tar.xz sl0ppij-7b0a46f812f0c0f60068742ea2984b88b6ad8ed5.zip | |
feat: Attach sessions by unique prefix name (#1169) (#1360)
* feat: Attach sessions by unique name prefix (#1169)
This makes attaching to sessions more convenient since only the first character(s) of the
session name must be typed.
If this prefix matches multiple sessions and is therefore ambiguous, zellij will complain
and show all sessions names starting with these characters.
If any session name matches the given string exact, it is attached immediately, therefore
it is always possible to attach to every session, even if the set of session names is not
prefix-free.
* Add feature to changelog
* Try to fix flaky e2e test
Diffstat (limited to 'src/tests/e2e/cases.rs')
| -rw-r--r-- | src/tests/e2e/cases.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/e2e/cases.rs b/src/tests/e2e/cases.rs index 19579f55..92438525 100644 --- a/src/tests/e2e/cases.rs +++ b/src/tests/e2e/cases.rs @@ -950,7 +950,8 @@ pub fn detach_and_attach_session() { name: "Wait for session to be attached", instruction: |remote_terminal: RemoteTerminal| -> bool { let mut step_is_complete = false; - if remote_terminal.cursor_position_is(3, 2) { + if remote_terminal.status_bar_appears() && remote_terminal.cursor_position_is(3, 2) + { // we're back inside the session step_is_complete = true; } |
