|
|
|
|
@ -87,6 +87,17 @@ $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');
|
|
|
|
|
$taskDrawerInclude = "{include file='user/task_center_drawer.tpl'}";
|
|
|
|
|
$assert(!str_contains($sharedTopbar, $taskDrawerInclude)
|
|
|
|
|
&& substr_count($cloudShell, $taskDrawerInclude) === 1
|
|
|
|
|
&& strpos($cloudShell, $taskDrawerInclude) > strpos($cloudShell, '</div>\n</div>'),
|
|
|
|
|
'The task center drawer must be a body-level cloud shell sibling, never nested in the scrolling main area');
|
|
|
|
|
$assert(preg_match('/\.panel-task-drawer:not\(\[open\]\)\s*\{[^}]*display:\s*none[^}]*\}/s',
|
|
|
|
|
$clientStyles) === 1,
|
|
|
|
|
'The task center drawer must remain hidden without relying on browser dialog defaults');
|
|
|
|
|
$assert(preg_match('/\.panel-task-drawer\s*\{(?=[^}]*isolation:\s*isolate)(?=[^}]*z-index:\s*[1-9][0-9]*)[^}]*\}/s',
|
|
|
|
|
$clientStyles) === 1,
|
|
|
|
|
'The task center drawer fallback must own an isolated layer above the user page');
|
|
|
|
|
$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');
|
|
|
|
|
|