From 81a18d327aa5702a0a5885f4eb2411e26d9a7665 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sat, 14 Nov 2026 15:02:08 -0800 Subject: [PATCH] Expect the Visual panel's name and its new order in the markup tests The panel is headed VISUAL, and Clean UI now sits with the overlay controls, above the Effects group. Co-authored-by: Manjunath Paparaju --- src/cockpitMarkup.test.mjs | 4 ++-- src/panelStackLayout.test.mjs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cockpitMarkup.test.mjs b/src/cockpitMarkup.test.mjs index 06db3aeff..3f461c392 100644 --- a/src/cockpitMarkup.test.mjs +++ b/src/cockpitMarkup.test.mjs @@ -530,12 +530,12 @@ test('Cockpit owns a focused shared Display portal and compact Radio controls', ); }); -test('Display orders 3D above Celestial, Clean UI below it, and Parameters below Detection', () => { +test('Visual orders Parameters below Detection, 3D below them, and Clean UI above the Effects', () => { const display = html.match(/id="pp-toggles"[\s\S]*?id="clean-view-exit"/); assert.ok(display, 'Display markup is missing'); assert.match( display[0], - /id="detection-toggle"[\s\S]*?id="param-slider-panel"[\s\S]*?id="models3d-toggle"[\s\S]*?id="celestial-toggle"[\s\S]*?id="clean-view-toggle"/, + /id="detection-toggle"[\s\S]*?id="param-slider-panel"[\s\S]*?id="models3d-toggle"[\s\S]*?id="scope-toggle"[\s\S]*?id="clean-view-toggle"[\s\S]*?class="pp-section-heading">Effects<[\s\S]*?id="celestial-toggle"/, ); assert.equal( (html.match(/id="param-slider-panel"/g) || []).length, diff --git a/src/panelStackLayout.test.mjs b/src/panelStackLayout.test.mjs index 5f053e52a..aa7cd8fd2 100644 --- a/src/panelStackLayout.test.mjs +++ b/src/panelStackLayout.test.mjs @@ -286,7 +286,7 @@ test('expanded right panels highlight the title divider without changing collaps assert.match( html, - /class="compact pp-header-row"[\s\S]*?class="pp-header-label">DISPLAY<\/span>[\s\S]*?class="panel-divider"/, + /class="compact pp-header-row"[\s\S]*?class="pp-header-label">VISUAL<\/span>[\s\S]*?class="panel-divider"/, ); assert.match( css,