Includes new page templates (fitness-gym, nonprofit, online-course, photography-studio, real-estate, startup-company, travel-blog, wedding-invitation) with thumbnail SVGs, test specs, documentation files, and minor updates to index.html, router.php, and playwright config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
837 B
JavaScript
25 lines
837 B
JavaScript
const { chromium } = require('playwright');
|
|
|
|
(async () => {
|
|
const browser = await chromium.launch();
|
|
const page = await browser.newPage();
|
|
|
|
await page.goto('file://' + process.cwd() + '/index.html');
|
|
await page.waitForSelector('#gjs', { timeout: 10000 });
|
|
await page.waitForTimeout(3000);
|
|
|
|
// Click Media category
|
|
const mediaCategory = page.locator('.gjs-block-category').filter({ hasText: 'MEDIA' });
|
|
await mediaCategory.click();
|
|
await page.waitForTimeout(1000);
|
|
|
|
// Take screenshot
|
|
await page.screenshot({ path: 'media-category.png', fullPage: true });
|
|
|
|
// Log what blocks we found
|
|
const blocks = await mediaCategory.locator('.gjs-block .gjs-block-label').allTextContents();
|
|
console.log('Blocks in Media category:', blocks);
|
|
|
|
await browser.close();
|
|
})();
|