|
|
|
|
@ -87,6 +87,12 @@ $assert(str_contains($cloudShell, "file='user/panel_sidebar.tpl'")
|
|
|
|
|
&& str_contains($userLayout, "file='user/panel_sidebar.tpl'"), 'Cloud and account pages must share one sidebar partial');
|
|
|
|
|
$assert(str_contains($cloudShell, "file='user/panel_topbar.tpl'")
|
|
|
|
|
&& str_contains($userLayout, "file='user/panel_topbar.tpl'"), 'Cloud and account pages must share one topbar partial');
|
|
|
|
|
$assert(preg_match('/\.panel-topbar\s*\{(?=[^}]*position:\s*sticky)(?=[^}]*top:\s*0)(?=[^}]*z-index:\s*[1-9][0-9]*)[^}]*\}/s',
|
|
|
|
|
$clientStyles) === 1,
|
|
|
|
|
'The shared user topbar must remain visible while the page content scrolls');
|
|
|
|
|
$assert(preg_match('/\.main-area\s*>\s*\.content\s+\.template-catalog\s*\{[^}]*isolation:\s*isolate[^}]*\}/s',
|
|
|
|
|
$clientStyles) === 1,
|
|
|
|
|
'Template picker layers must remain below the sticky shared topbar');
|
|
|
|
|
$assert(!str_contains($cloudShell, '<aside class="sidebar"')
|
|
|
|
|
&& !str_contains($userLayout, 'vu-sidebar'), 'A duplicate user sidebar shell remains active');
|
|
|
|
|
$assert(str_contains($userLayout, '/cloud/client.css'), 'Account pages must load the shared VM-panel navigation styles');
|
|
|
|
|
|