mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Force click on sidebar collapse toggle in visual tests to resolve headless visibility flake. Removed redundant CSS media queries for sidebar elements. Co-authored-by: PR0M3TH3AN <[email protected]>
21 lines
747 B
JavaScript
21 lines
747 B
JavaScript
|
|
import { chromium } from 'playwright';
|
|
|
|
(async () => {
|
|
const browser = await chromium.launch({ headless: true });
|
|
const page = await browser.newPage();
|
|
|
|
console.log('Navigating to index.html...');
|
|
// We need to serve the file. I'll assume I can run this against the dev server if I start one,
|
|
// or I can just use file:// if I build?
|
|
// But the test uses /index.html, so it expects a server.
|
|
// I will rely on `npm run start` being active or I need to start it.
|
|
|
|
// Since I cannot easily start the server and keep it running in this environment without blocking,
|
|
// I will assume the issue is static analysis or I need to fix it blindly.
|
|
|
|
// However, I can inspect the CSS file content I read.
|
|
|
|
await browser.close();
|
|
})();
|