My-Weekly-ToDo-List/tests/css-debug-test.spec.ts
mARTin c82572935c feat: dark mode color adjustment, multi-source quotes, UI text wrapping, and versioning rules
- Add dark mode color adjustment helper for category colors
- Support multiple motivational quote source URLs
- Fix text wrapping for tasks/events to prevent horizontal overflow
- Improve someday list item layout for long text
- Add CLAUDE.md with semantic versioning and git workflow rules
- Update test/doc URLs and planning docs

v1.1.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 23:33:25 +01:00

50 lines
1.8 KiB
TypeScript

import { test, expect } from '@playwright/test';
// Test to verify CSS styling is working in your application
test.describe('CSS Debugging Tests', () => {
test('should load with proper CSS styling', async ({ page }) => {
await page.goto('http://localhost:3001');
// Verify main page elements have proper styling
const mainHeader = page.getByText('My Weekly To Do List');
await expect(mainHeader).toBeVisible();
// Check for CSS classes that indicate styling is applied
const taskItem = page.locator('.task-item');
await expect(taskItem).toBeVisible();
// Verify basic CSS properties are applied
const taskItemStyles = await taskItem.evaluate(element => {
const computedStyle = window.getComputedStyle(element);
return {
backgroundColor: computedStyle.backgroundColor,
borderRadius: computedStyle.borderRadius,
boxShadow: computedStyle.boxShadow
};
});
console.log('Task item CSS properties:', taskItemStyles);
expect(taskItemStyles.backgroundColor).toBeTruthy();
});
test('should have proper auth form styling', async ({ page }) => {
await page.goto('http://localhost:3001/auth/login');
// Check that auth form has proper styling
const authForm = page.locator('.auth-form');
await expect(authForm).toBeVisible();
// Verify CSS properties on auth form
const formStyles = await authForm.evaluate(element => {
const computedStyle = window.getComputedStyle(element);
return {
backgroundColor: computedStyle.backgroundColor,
borderRadius: computedStyle.borderRadius,
boxShadow: computedStyle.boxShadow
};
});
console.log('Auth form CSS properties:', formStyles);
expect(formStyles.backgroundColor).toBeTruthy();
});
});