From 5d001a162f58300cce4ab4c258ab8891ddbba426 Mon Sep 17 00:00:00 2001 From: pavlov346346-source Date: Mon, 7 Sep 2026 18:46:00 +0300 Subject: [PATCH] Test v17.6.2 operations UX boot --- tests/app.spec.mjs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/app.spec.mjs b/tests/app.spec.mjs index 3e9f788..bad4096 100644 --- a/tests/app.spec.mjs +++ b/tests/app.spec.mjs @@ -37,6 +37,17 @@ test('chat photo guard compresses a large camera image', async ({ page }) => { }); expect(Math.max(result.width,result.height)).toBeLessThanOrEqual(2048);expect(result.size).toBeLessThan(result.original);expect(result.size).toBeLessThanOrEqual(15*1024*1024);expect(result.type).toBe('image/jpeg');expect(result.name.endsWith('.jpg')).toBeTruthy(); }); +test('v17.6.2 operations UX boots with menu and route features', async ({ page }) => { + await page.goto('/index.html', { waitUntil:'domcontentloaded' }); + await page.waitForFunction(()=>Boolean(window.SunOpsUXV1762),null,{timeout:15000}); + const checks=await page.evaluate(()=>window.SunOpsUXV1762.checks()); + expect(checks.version).toBe('17.6.2'); + expect(checks.menuPage).toBeTruthy(); + expect(checks.routeStartKey).toBe('sunRouteBaseV1'); + expect(checks.routeOrderPopup).toBeTruthy(); + expect(checks.calendarMore).toBeTruthy(); + expect(await page.locator('header nav button', {hasText:'Меню'}).count()).toBeGreaterThan(0); +}); test('mobile body does not overflow viewport', async ({ page }, testInfo) => { test.skip(testInfo.project.name!=='mobile-390'); await page.goto('/index.html', { waitUntil:'domcontentloaded' }); await page.waitForTimeout(500); const dims=await page.evaluate(()=>({innerWidth,scrollWidth:document.documentElement.scrollWidth,bodyWidth:document.body.scrollWidth}));