Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s
Build and deploy / deploy (push) Successful in 2m39s
This commit is contained in:
1 parent
99c848189e
commit
12562baeb5
2040 files changed
+184656
-181
No files matched your search
@@ -0,0 +1 @@
|
||||
async page=>{const rows=[];for(const [kind,slug,selector] of [['table','новый-движок-ctfe','.table-scroll'],['code','пишем-аналог-функции-php-preg_match_all-на-языке-прог','pre']]){await page.goto('http://127.0.0.1:65019/articles/'+encodeURIComponent(slug)+'/');await page.setViewportSize({width:320,height:900});const el=page.locator(selector).first();await el.focus();await page.keyboard.down('ArrowRight');await page.waitForFunction(s=>document.querySelector(s).scrollLeft>30,selector,{timeout:1500}).catch(()=>{});await page.keyboard.up('ArrowRight');rows.push({kind,...await el.evaluate(e=>({left:e.scrollLeft,width:e.clientWidth,scroll:e.scrollWidth,focus:document.activeElement===e}))});await page.screenshot({path:'/tmp/progcode-ds-creative/evidence/'+kind+'-keyboard-delayed-320-dark.png'});}return rows;}
|
||||
Reference in new issue
Block a user