Files
workspace/code/fms/.playwright-cli/check-module3.mjs
T
2026-08-20 22:38:37 +08:00

15 lines
573 B
JavaScript

import { chromium } from 'playwright-core'
const BASE = 'http://localhost:5082'
const browser = await chromium.launch({
headless: true,
executablePath: `${process.env.LOCALAPPDATA}\\ms-playwright\\chromium-1232\\chrome-win64\\chrome.exe`,
})
const page = await browser.newPage()
const resp = await page.request.get(`${BASE}/src/components/ui/splitter/splitter.vue?t=${Date.now()}`)
const text = await resp.text()
const i = text.indexOf('panelItems')
console.log('--- around panelItems ---')
console.log(text.slice(Math.max(0, i - 400), i + 900))
await browser.close()