Files
videoreg.ru/docs/releases/implemented/browser-smoke-final.log
T
huncode c0dcb64b1d
Production container deploy / production (push) Successful in 1m32s
Freeze verified implemented export for limited publication
2026-10-27 16:01:22 +03:00

50 lines
7.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
### Result
{"base":"http://127.0.0.1:59940","viewport":{"width":360,"height":800},"checks":[{"name":"theme Enter light","passed":true},{"name":"theme Space dark","passed":true},{"name":"theme reload persists dark","passed":true},{"name":"theme cycles to system","passed":true},{"name":"system follows dark","passed":true},{"name":"system follows light","passed":true},{"name":"full body search GPS","passed":true,"actual":15},{"name":"code block indexed","passed":true},{"name":"link anchor indexed","passed":true},{"name":"unknown search empty","passed":true,"actual":"Найдено материалов: 0"},{"name":"reset all articles","passed":true,"actual":28},{"name":"category filter","passed":true,"actual":{"category":"Устройство","kinds":["Устройство · 2014"]}},{"name":"keyboard search reset","passed":true,"actual":"<button type=\"button\" class=\"ui-button\">Сбросить</button>"},{"name":"JPEG known result","passed":true,"actual":"0 ч 16 мин 40 с"},{"name":"fractional cameras rejected","passed":true,"actual":"Проверьте значения"},{"name":"empty capacity rejected","passed":true},{"name":"stream known result","passed":true,"actual":"6 ч 24 мин 0 с"},{"name":"full reserve rejected","passed":true},{"name":"gallery expands actual recovered frames","passed":true,"actual":{"before":6,"after":30}},{"name":"real404","passed":true,"actual":404},{"name":"no browser runtime errors","passed":true,"actual":[]}],"errors":[]}
### Ran Playwright code
```js
await (async page => {
const base='http://127.0.0.1:59940';
const errors=[];page.on('pageerror', e=>errors.push(e.message));
const checks=[];
function check(name,ok,actual){checks.push({name,passed:!!ok,actual});if(!ok) throw new Error(name+': '+JSON.stringify(actual));}
await page.goto(base+'/library');
await page.evaluate(()=>localStorage.clear());await page.reload();
const theme=page.locator('header .theme-cycle');
await theme.press('Enter');check('theme Enter light',(await theme.getAttribute('aria-label')).includes('светлая'));
await theme.press('Space');check('theme Space dark',(await theme.getAttribute('aria-label')).includes('тёмная'));
await page.reload();check('theme reload persists dark',(await theme.getAttribute('aria-label')).includes('тёмная'));
await theme.click();check('theme cycles to system',(await theme.getAttribute('aria-label')).includes('системная'));
await page.emulateMedia({colorScheme:'dark'});await page.waitForFunction(()=>document.documentElement.dataset.theme==='dark');check('system follows dark',await page.locator('html').getAttribute('data-theme')==='dark');
await page.emulateMedia({colorScheme:'light'});await page.waitForFunction(()=>document.documentElement.dataset.theme==='light');check('system follows light',await page.locator('html').getAttribute('data-theme')==='light');
await page.setViewportSize({width:360,height:800});
await page.goto(base+'/library');
await page.locator('#library-query').fill('GPS');
let count=await page.locator('.search-results>a').count();check('full body search GPS',count>0,count);
await page.locator('#library-query').fill('5 кадров/с × (10 с до + 10 с после) = 100 кадров');check('code block indexed',await page.locator('.search-results a[href="/system"]').count()===1);
await page.locator('#library-query').fill('Подключение СВК-007 — ролик СВК-Лаб (YouTube)');check('link anchor indexed',await page.locator('.search-results a[href="/demo.shtml"]').count()===1);
await page.locator('#library-query').fill('невозможныйзапрос98765');check('unknown search empty',await page.locator('.empty').isVisible(),await page.locator('.result-count').innerText());
await page.getByRole('button',{name:'Показать все материалы'}).click();count=await page.locator('.search-results>a').count();check('reset all articles',count>=27,count);
const category=await page.locator('#library-category option').nth(1).textContent();await page.locator('#library-category').selectOption({label:category});const kinds=await page.locator('.search-kind').allTextContents();check('category filter',kinds.length>0&&kinds.every(k=>k.includes(category)),{category,kinds});
await page.getByRole('button',{name:'Сбросить',exact:true}).click();
await page.locator('#library-query').focus();await page.keyboard.press('Tab');check('keyboard search reset',await page.evaluate(()=>document.activeElement?.textContent?.trim()==='Сбросить'),await page.evaluate(()=>document.activeElement?.outerHTML));
await page.goto(base+'/tools/recording-time');
await page.getByLabel('Ёмкость носителя, ГБ').fill('1');await page.getByLabel('Средний размер одного JPEG, КБ').fill('100');await page.getByLabel('Кадров/с на камеру').fill('5');await page.getByLabel('Число камер').fill('2');await page.getByLabel('Резерв места, %').fill('0');
let result=await page.locator('.time-result strong').innerText();check('JPEG known result',result==='0 ч 16 мин 40 с',result);
await page.getByLabel('Число камер').fill('1.5');result=await page.locator('.time-result strong').innerText();check('fractional cameras rejected',result==='Проверьте значения',result);
await page.getByLabel('Число камер').fill('2');await page.getByLabel('Ёмкость носителя, ГБ').fill('');check('empty capacity rejected',(await page.locator('.time-result strong').innerText())==='Проверьте значения');
await page.getByLabel('Видеопоток',{exact:true}).check();await page.getByLabel('Ёмкость носителя, ГБ').fill('128');await page.getByLabel('Суммарный битрейт, Мбит/с').fill('40');await page.getByLabel('Резерв места, %').fill('10');result=await page.locator('.time-result strong').innerText();check('stream known result',result==='6 ч 24 мин 0 с',result);
await page.getByLabel('Резерв места, %').fill('100');check('full reserve rejected',(await page.locator('.time-result strong').innerText())==='Проверьте значения');
await page.goto(base+'/samples/rain');const before=await page.locator('.frame-gallery img').count();const show=page.getByRole('button',{name:/Показать/});await show.click();const after=await page.locator('.frame-gallery img').count();check('gallery expands actual recovered frames',before===6&&after>before,{before,after});
const missing=await page.goto(base+'/this-original-page-does-not-exist');check('real404',missing.status()===404,missing.status());
check('no browser runtime errors',errors.length===0,errors);
return {base,viewport:{width:360,height:800},checks,errors};
}
)(page);
```
### Page
- Page URL: http://127.0.0.1:59940/this-original-page-does-not-exist
- Page Title: Videoreg — техническая библиотека СВК
- Console: 1 errors, 0 warnings
### Events
- New console entries: .playwright-cli/console-2026-10-27T12-56-37-395Z.log#L1