const { chromium } = require('playwright'); const fs = require('node:fs'); const path = require('node:path'); const assert = require('node:assert/strict'); const repo = path.resolve(__dirname, '../..'); (async () => { const browser = await chromium.launch({ executablePath: process.env.CHROMIUM_PATH }); try { const page = await browser.newPage(); const errors = []; page.on('pageerror', error => errors.push(error.message)); await page.route('https://plotdirector.test/**', route => route.fulfill({ contentType: 'text/html', body: '' })); await page.goto('https://plotdirector.test/Locations'); const layout = fs.readFileSync(path.join(repo, 'PlotLine/Views/Shared/_Layout.cshtml'), 'utf8'); const modalStart = layout.indexOf('