This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Repository navigation
Commit b06c208
committed
test(console): replace setTimeout flushes with waitFor in sidebar gate tests
The deny and error cases flushed with an arbitrary setTimeout before
asserting the gated entry was absent, which is timing-dependent and can
pass while the SSAR query is still in flight. Wait on the SSAR request
having fired plus the entry being absent so the assertion is settled and
meaningful.
Address review feedback on apps/console/src/routes/sidebar-sections.test.tsx.
Signed-off-by: Aleksei Sviridkin <[email protected]>1 parent f90314b commit b06c208
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
89 | 91 | | |
90 | | - | |
91 | | - | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
0 commit comments