Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(desktop-app): r1-l6 derive toast z-index from the real .toast-stack rule
Diego Zacariasd34fd868e4c5
diff --git a/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx b/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsxindex b0f746192..cb9d50521 100644--- a/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx+++ b/desktop-app/ui/src/__tests__/chatDrawerHeaderStacking.test.tsx@@ -22,6 +22,15 @@ function layer(name: string): number {return Number(match[1])}+// The `.toast-stack` sits on a raw z-index literal (not a token) in styles.css.+// Read it from the real rule so a change there is reflected here instead of the+// assertion passing against a phantom constant (T4).+function toastStackZIndex(): number {+ const match = /\.toast-stack\s*\{[^}]*z-index:\s*(\d+)/.exec(stylesCss)+ if (!match) throw new Error('.toast-stack z-index not found')+ return Number(match[1])+}+beforeEach(() => {const style = document.createElement('style')style.dataset.testStyles = 'header-stacking'@@ -49,7 +58,7 @@ describe('chat drawer header stacking', () => {// Inbox popover surfaces over the drawer instead of behind it.expect(layer('layer-dropdown')).toBeGreaterThan(layer('layer-chat-overlay'))// Toasts still sit above the raised header (no occlusion of the toast stack).- expect(4000).toBeGreaterThan(layer('layer-dropdown'))+ expect(toastStackZIndex()).toBeGreaterThan(layer('layer-dropdown'))})it('documents the baseline: the header layer is below the drawer when it is not open', () => {