const pw=require("playwright");(async()=>{const b=await pw.chromium.launch();const pg=await b.newPage();await pg.setViewportSize({width:1440,height:900});await pg.goto("http://localhost:3333");await pg.waitForTimeout(2000);for(const t of["A","B","C","D","E"]){await pg.evaluate((x)=>{sw(x);document.body.offsetHeight;void document.body.offsetWidth;const gp=document.querySelector(".gp.show");if(gp){const cs=getComputedStyle(gp);console.log("display:",cs.display,"w:",cs.width)}});await pg.waitForTimeout(1200);const dim=await pg.evaluate(()=>{const g=document.querySelector(".gp.show");return g?{w:g.offsetWidth,h:g.offsetHeight,display:getComputedStyle(g).display}:null});console.log(t+": "+JSON.stringify(dim));await pg.screenshot({path:"login-templates/v4-showcase/preview-"+t+".png",fullPage:false});console.log(t+" done")}await b.close()})().catch(e=>console.log("err:",e.message));