Files
huncode 12562baeb5
Build and deploy / deploy (push) Successful in 2m39s
Implement ProgCode identity and real shared reading UI kit
2026-10-27 15:19:49 +03:00

11 lines
2.1 KiB
Plaintext
Raw Permalink 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
[{"name":"resources","width":320,"theme":"light","pageWidth":329,"h1":"Сначала —\nпервоисточник."},{"name":"resources","width":320,"theme":"dark","pageWidth":329,"h1":"Сначала —\nпервоисточник."},{"name":"resources","width":390,"theme":"light","pageWidth":390,"h1":"Сначала —\nпервоисточник."},{"name":"resources","width":390,"theme":"dark","pageWidth":390,"h1":"Сначала —\nпервоисточник."},{"name":"resources","width":1440,"theme":"light","pageWidth":1440,"h1":"Сначала —\nпервоисточник."},{"name":"resources","width":1440,"theme":"dark","pageWidth":1440,"h1":"Сначала —\nпервоисточник."},{"name":"about","width":320,"theme":"light","pageWidth":320,"h1":"Блог одного\nпрограммиста."},{"name":"about","width":320,"theme":"dark","pageWidth":320,"h1":"Блог одного\nпрограммиста."},{"name":"about","width":390,"theme":"light","pageWidth":390,"h1":"Блог одного\nпрограммиста."},{"name":"about","width":390,"theme":"dark","pageWidth":390,"h1":"Блог одного\nпрограммиста."},{"name":"about","width":1440,"theme":"light","pageWidth":1440,"h1":"Блог одного\nпрограммиста."},{"name":"about","width":1440,"theme":"dark","pageWidth":1440,"h1":"Блог одного\nпрограммиста."}]
### Ran Playwright code
```js
await (async page=>{const rows=[];for(const name of ['resources','about'])for(const width of [320,390,1440])for(const theme of ['light','dark']){await page.setViewportSize({width,height:900});await page.goto('http://127.0.0.1:65019/'+name+'/');await page.getByRole('combobox',{name:'Тема',exact:true}).selectOption(theme);rows.push({name,width,theme,...await page.evaluate(()=>({pageWidth:document.documentElement.scrollWidth,h1:document.querySelector('h1').innerText}))});await page.screenshot({path:`/tmp/progcode-ds-creative/evidence/${name}-${width}-${theme}.png`});}return rows;}
)(page);
```
### Page
- Page URL: http://127.0.0.1:65019/about/
- Page Title: О блоге — ProgCode