Provide minimal nav shell in v17.6.2 E2E

This commit is contained in:
pavlov346346-source 2026-09-07 18:52:13 +03:00
parent a5bea1708d
commit 80cd63c444

View File

@ -40,6 +40,12 @@ test('chat photo guard compresses a large camera image', async ({ page }) => {
test('v17.6.2 operations UX boots with menu and route features', async ({ page }) => { test('v17.6.2 operations UX boots with menu and route features', async ({ page }) => {
await page.goto('/index.html', { waitUntil:'domcontentloaded' }); await page.goto('/index.html', { waitUntil:'domcontentloaded' });
await page.evaluate(()=>{ await page.evaluate(()=>{
if(!document.querySelector('header nav')){
const header=document.createElement('header');
const nav=document.createElement('nav');
header.appendChild(nav);
document.body.appendChild(header);
}
window.SunCloudV2={ window.SunCloudV2={
getSupportMode:()=>null, getSupportMode:()=>null,
isSupportMode:()=>false, isSupportMode:()=>false,