- Fix selectors to use config keys instead of Chinese labels
- Add page load waiting and element visibility checks
- Improve global setup with better error handling
- Update all config-linkage tests with correct selectors
- Add config-toggle.spec.ts for module show/hide tests
- Add config-params.spec.ts for configuration parameter tests
- Test Services module toggle and items filtering
- Test Products module toggle, pricing display, and featured products
- Test News module toggle, display count, categories, and sort order
- Verify real-time configuration updates between admin and frontend
- Create public config API for frontend consumption
- Add configuration fetching to homepage
- Implement module show/hide logic based on config
- Add support for Services items filtering
- Add support for Products featured products and pricing display
- Add support for News display count, categories, and sort order
- Fix table name from 'configs' to 'siteConfig' in API route
- Update type definitions for proper TypeScript support
Add Playwright visual regression test baseline snapshots for:
- Contact page (22 snapshots)
- Home page (18 snapshots)
- Visual regression suite (35 snapshots)
Total: 75 baseline snapshots (~9.6MB)
These snapshots serve as visual regression testing baselines and should
be committed to version control according to Playwright best practices.
Benefits:
- Ensures UI consistency across changes
- Detects unintended visual changes
- Provides baseline for cross-browser testing
- Enables team collaboration with consistent snapshots
Following Playwright documentation:
https://playwright.dev/docs/test-snapshots
Snapshots are stored in:
- e2e/src/tests/visual/contact-page.visual.spec.ts-snapshots/
- e2e/src/tests/visual/home-page.visual.spec.ts-snapshots/
- e2e/src/tests/visual/visual-regression.spec.ts-snapshots/~