Summary
The plugin currently has no frontend or E2E test coverage. This issue tracks the implementation of automated End-to-End tests for the frontend using Playwright, covering the admin settings page and the key frontend JavaScript components.
Motivation
- 42 JavaScript files across 21 component directories with zero test coverage
- Interactive admin UI (toggles, settings) has no automated validation
- Frontend block enhancements (carousel, sticky column, animations, counter, etc.) are untested
- CI/CD pipeline only covers PHP linting/static analysis — no JS quality gates
Scope
Admin Settings Page
Frontend Components
Implementation Plan
- Install Playwright (
@playwright/test) as a dev dependency
- Add
playwright.config.ts targeting a local WordPress test environment
- Create test fixtures/helpers for WordPress login and page navigation
- Write specs under
tests/e2e/
- Add
test:e2e npm script
- Add a GitHub Actions workflow (
.github/workflows/e2e.yml) to run tests on PRs
Acceptance Criteria
- All listed test cases are implemented and passing
- Tests run in CI on every pull request targeting
trunk
- Test results are available as GitHub Actions artifacts (HTML report)
- No existing build scripts are broken
Tech Stack
- Test runner: Playwright (
@playwright/test)
- Language: TypeScript
- Environment: WordPress (local via
wp-env or a Docker-based setup)
- Browsers: Chromium (primary), Firefox, WebKit (optional)
Summary
The plugin currently has no frontend or E2E test coverage. This issue tracks the implementation of automated End-to-End tests for the frontend using Playwright, covering the admin settings page and the key frontend JavaScript components.
Motivation
Scope
Admin Settings Page
Frontend Components
Implementation Plan
@playwright/test) as a dev dependencyplaywright.config.tstargeting a local WordPress test environmenttests/e2e/test:e2enpm script.github/workflows/e2e.yml) to run tests on PRsAcceptance Criteria
trunkTech Stack
@playwright/test)wp-envor a Docker-based setup)