Record five exact R3 limited approvals and independently reviewed frozen delivery packet
This commit is contained in:
1 parent
f2494e8d1f
commit
419520e44f
81 files changed
+23854
-16
No files matched your search
@@ -7,7 +7,7 @@ async page => {
|
||||
const response=await page.goto(base+path);await page.locator('main').waitFor();
|
||||
await page.evaluate(async()=>{for(const im of document.images){im.loading='eager';await im.decode().catch(()=>{});}await document.fonts.ready;});
|
||||
const safe=path==='/'?'home':path.slice(1).replace(/[^a-zA-Z0-9]+/g,'-');
|
||||
const file='/Users/gavrilovdev/tmp/videoreg/docs/rebuild-v2/evidence/candidate-r2/'+safe+'-'+width+'.png';await page.screenshot({path:file,fullPage:true});
|
||||
const file='/Users/gavrilovdev/tmp/videoreg/docs/rebuild-v2/evidence/candidate-r3/'+safe+'-'+width+'.png';await page.screenshot({path:file,fullPage:true});
|
||||
rows.push(await page.evaluate(({path,width,file,status})=>({path,url:location.href,width,height:innerHeight,screenshot:file,status,title:document.title,scrollWidth:document.documentElement.scrollWidth,overflow:document.documentElement.scrollWidth>innerWidth,brokenImages:[...document.images].filter(i=>!i.complete||i.naturalWidth===0).map(i=>i.src),outbound:[...document.querySelectorAll('*')].flatMap(e=>['href','src','action','poster','data'].flatMap(attr=>{const value=e.getAttribute(attr);if(!value||!/^(https?:)?\/\//i.test(value))return[];return[{element:e.tagName,attribute:attr,destination:value,context:(e.textContent||e.getAttribute('alt')||'').trim().slice(0,200)}]}))}),{path,width,file,status:response.status()}));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user