Files
silverbullet-icalendar/verify_test_results.cjs
sstent 4030c3fef0
All checks were successful
Build SilverBullet Plug / build (push) Successful in 28s
Fix: Unified plug identity to Library/sstent/icalendar (v0.3.18)
2026-02-17 16:04:22 -08:00

36 lines
1.1 KiB
JavaScript

const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const context = await browser.newContext();
const page = await context.newPage();
page.on('console', msg => {
console.log(`[BROWSER] ${msg.text()}`);
});
console.log('Logging in...');
await page.goto('http://localhost:3000/.auth');
await page.fill('input[type="text"]', 'admin');
await page.fill('input[type="password"]', 'admin');
await page.click('button:has-text("Login")');
await page.waitForNavigation();
console.log('Waiting 30s for indexing and plug activation...');
await page.waitForTimeout(30000);
// Check command palette
console.log('Opening command palette to check for iCalendar commands...');
await page.keyboard.press('Control+/');
await page.waitForTimeout(2000);
await page.keyboard.type('iCalendar:');
await page.waitForTimeout(2000);
const body = await page.innerText('body');
console.log('--- Body Output ---');
console.log(body);
await page.screenshot({ path: 'repro_check.png', fullPage: true });
await browser.close();
})();