Files
cv-site/test-shortcuts-manual.mjs
T
2025-11-17 08:34:50 +00:00

30 lines
874 B
JavaScript
Executable File

#!/usr/bin/env node
import { chromium } from 'playwright';
(async () => {
console.log('Testing keyboard shortcuts with actual key presses...\n');
const browser = await chromium.launch({ headless: false, slowMo: 500 });
const page = await browser.newPage();
await page.goto('http://localhost:1999/?lang=en');
await page.waitForTimeout(2000);
console.log('Press L key to toggle length...');
await page.keyboard.press('l');
await page.waitForTimeout(1000);
console.log('Press I key to toggle icons...');
await page.keyboard.press('i');
await page.waitForTimeout(1000);
console.log('Press V key to toggle theme...');
await page.keyboard.press('v');
await page.waitForTimeout(1000);
console.log('\n✅ Manual test complete - check browser window');
console.log('Press Ctrl+C to exit\n');
await new Promise(() => {});
})();