From 02def35b1868e3fb90eff303365dc075e12ae257 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Sun, 29 Nov 2026 20:36:23 -0500 Subject: [PATCH] test(e2e): wait for tooltips to close before the reslice baseline The oblique reslice test captures the coronal view once as the baseline that Reset Views must return to. When the pointer ends on the Layouts button after the layout menu closes, its tooltip is still fading over the coronal view at that moment, and the reset view then differs from the baseline by hundreds of pixels until the poll times out. --- tests/specs/vtk-widget-interactions.e2e.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/specs/vtk-widget-interactions.e2e.ts b/tests/specs/vtk-widget-interactions.e2e.ts index a0597040c..0bc62cc73 100644 --- a/tests/specs/vtk-widget-interactions.e2e.ts +++ b/tests/specs/vtk-widget-interactions.e2e.ts @@ -250,6 +250,10 @@ test.describe('VTK crop and reslice interactions', () => { await expect(obliqueGrid).toBeVisible(); await waitForTransitions(obliqueGrid); await utils.moveToElement(header); + // The Layouts tooltip fades out over the coronal view the baseline captures. + await expect( + page.locator('.v-tooltip .v-overlay__content:visible') + ).toHaveCount(0); await expect .poll(async () => { const cursor = cursorPositions(