mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 15:52:21 +00:00
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 <[email protected]>
This commit is contained in:
1 parent
1003a3c79d
commit
81a18d327a
2 files changed
+3
-3
No files matched your search
@@ -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"/);
|
const display = html.match(/id="pp-toggles"[\s\S]*?id="clean-view-exit"/);
|
||||||
assert.ok(display, 'Display markup is missing');
|
assert.ok(display, 'Display markup is missing');
|
||||||
assert.match(
|
assert.match(
|
||||||
display[0],
|
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(
|
assert.equal(
|
||||||
(html.match(/id="param-slider-panel"/g) || []).length,
|
(html.match(/id="param-slider-panel"/g) || []).length,
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ test('expanded right panels highlight the title divider without changing collaps
|
|||||||
|
|
||||||
assert.match(
|
assert.match(
|
||||||
html,
|
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(
|
assert.match(
|
||||||
css,
|
css,
|
||||||
|
|||||||
Reference in new issue
Block a user