Remove stray diagnostic script committed by accident
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
-15
@@ -1,15 +0,0 @@
|
||||
import { chromium } from 'playwright';
|
||||
const b = await chromium.launch();
|
||||
const p = await b.newPage({ viewport: { width: 1200, height: 900 } });
|
||||
await p.goto('http://localhost:3107/?t=' + Math.floor(Math.random()*1e9), { waitUntil: 'networkidle' });
|
||||
const mine = p.locator('.card', { hasText: 'you should ask hard questions' }).first();
|
||||
const r = await mine.evaluate(el => ({
|
||||
inlineTextAlign: el.style.textAlign,
|
||||
inlinePadding: el.style.padding,
|
||||
inlineBorderColor: el.style.borderColor,
|
||||
cssTextLen: el.style.cssText.length,
|
||||
cssText: el.style.cssText,
|
||||
computed: getComputedStyle(el).textAlign,
|
||||
}));
|
||||
console.log(JSON.stringify(r, null, 2));
|
||||
await b.close();
|
||||
Reference in New Issue
Block a user