summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-04-28 20:59:15 +0200
committerGitHub <noreply@github.com>2023-04-28 20:59:15 +0200
commitacb31c5322b1ffb30420cb6171f50a8e5944d013 (patch)
treed42d529087340898a04b174d0c013b1512237049
parentce3882fb82eb30b841ee925320efcc2b9198543d (diff)
fix(e2e): fix flaky locked mode test (#2413)
-rw-r--r--src/tests/e2e/cases.rs2
-rw-r--r--src/tests/e2e/snapshots/zellij__tests__e2e__cases__lock_mode.snap6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/e2e/cases.rs b/src/tests/e2e/cases.rs
index e5b4493bf..d2b7086ac 100644
--- a/src/tests/e2e/cases.rs
+++ b/src/tests/e2e/cases.rs
@@ -832,7 +832,7 @@ pub fn lock_mode() {
break last_snapshot;
}
};
- // let last_snapshot = account_for_races_in_snapshot(last_snapshot);
+ let last_snapshot = account_for_races_in_snapshot(last_snapshot);
assert_snapshot!(last_snapshot);
}
diff --git a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__lock_mode.snap b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__lock_mode.snap
index 93a92abe3..e6d38062e 100644
--- a/src/tests/e2e/snapshots/zellij__tests__e2e__cases__lock_mode.snap
+++ b/src/tests/e2e/snapshots/zellij__tests__e2e__cases__lock_mode.snap
@@ -1,9 +1,9 @@
---
source: src/tests/e2e/cases.rs
-assertion_line: 819
+assertion_line: 836
expression: last_snapshot
---
- Zellij (e2e-test)  Tab #1 
+ Zellij (e2e-test)  Tab #1 
┌ Pane #1 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│$ nabc█ │
│ │
@@ -25,5 +25,5 @@ expression: last_snapshot
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
- Ctrl + <g> LOCK  <> PANE  <> TAB  <> RESIZE  <> MOVE  <> SEARCH  <> SESSION  <> QUIT 
+ Ctrl + <g> LOCK  <> PANE  <> TAB  <> RESIZE  <> MOVE  <> SEARCH  <> SESSION  <> QUIT 
-- INTERFACE LOCKED --