import { test, expect } from '@playwright/test'; /** * Simple Page Content Verification Tests * @group @simple-content * * This simplified test suite verifies that key pages load and * contain expected content without checking detailed elements. */ test.describe('Simple Page Content Verification', () => { test('Login page contains form elements', async ({ page }) => { await page.goto('/community-login/'); // Check for basic form presence const content = await page.content(); expect(content).toContain('form'); expect(content).toContain('input'); expect(content).toContain('password'); // Verify page title exists const pageTitle = await page.title(); expect(pageTitle.length).toBeGreaterThan(0); }); test('Dashboard page loads', async ({ page }) => { await page.goto('/hvac-dashboard/'); // Check for dashboard structure const content = await page.content(); // Check if content contains login form or dashboard elements const hasContent = content.includes('login') || content.includes('dashboard') || content.includes('Login') || content.includes('Dashboard'); expect(hasContent).toBeTruthy(); }); test('Profile page loads', async ({ page }) => { await page.goto('/trainer-profile/'); // Check for profile content or login form const content = await page.content(); const hasContent = content.includes('profile') || content.includes('login') || content.includes('Profile') || content.includes('Login'); expect(hasContent).toBeTruthy(); }); test('My Events page loads', async ({ page }) => { await page.goto('/my-events/'); // Check if page loaded with either events list or login form const content = await page.content(); const hasContent = content.includes('events') || content.includes('Events') || content.includes('login') || content.includes('Login'); expect(hasContent).toBeTruthy(); }); });