Files
smoothschedule/frontend/tests/e2e/site-builder-test.spec.ts
poduck 89fa8f81af Fix: Display correct SmoothSchedule logo in email preview
Replaced the blank base64 encoded logo with the actual SmoothSchedule logo in the email rendering pipeline.

A Playwright E2E test was run to verify that the logo is correctly displayed in the email preview modal, ensuring it loads with natural dimensions and is visible.
2025-12-14 19:10:56 -05:00

30 lines
1.2 KiB
TypeScript

import { test, expect } from '@playwright/test';
test('Site builder renders different components', async ({ page }) => {
// Login
await page.goto('http://pixel8ed.lvh.me:5173/login');
await page.getByPlaceholder(/username/i).fill('pixel8ed');
await page.getByPlaceholder(/password/i).fill('starry12');
await page.getByRole('button', { name: /sign in/i }).click();
// Navigate to site builder
await page.waitForTimeout(2000);
await page.goto('http://pixel8ed.lvh.me:5173/dashboard/site-editor');
await page.waitForTimeout(5000);
// Take screenshot
await page.screenshot({ path: 'test-results/site-builder-state.png', fullPage: true });
// Check for component variety in the iframe
const iframe = page.frameLocator('iframe');
const iframeContent = await iframe.locator('body').textContent().catch(() => '');
console.log('=== SITE BUILDER TEST ===');
console.log('Iframe content (first 500 chars):', iframeContent?.substring(0, 500));
// Check the Outline section for component names
const outlineSection = page.locator('h2:has-text("Outline")').locator('..').locator('..');
const outlineText = await outlineSection.textContent().catch(() => 'Not found');
console.log('Outline section:', outlineText?.substring(0, 500));
});