@maksimer/tests
v1.0.9
Published
Add E2E tests to your project.
Readme
Maksimer Tests
Set up a ready-to-use Playwright E2E environment for your WordPress project.
Usage
npx @maksimer/testsThis will:
Add a
tests/e2e/folder to your projectCopy base configuration and templates
Prompt for:
- WordPress URL and credentials
- WooCommerce shop/cart paths
- Tests to include
Scaffold selected tests
Ensure
@wordpress/scriptsis installedInstall all dependencies inside the
tests/e2e/folder
Folder Structure
tests/e2e/
├── .env
├── .env.example
├── playwright.config.js
├── tests/
│ └── selected-test-files.test.js
└── package.jsonIncluded Test Options
When prompted, you can choose from a list of reusable test templates like:
- Login Test
- WooCommerce Basic Test
Development
To modify test templates or CLI behavior, see the helpers/ and templates/tests/ directories in the source.
Release a New Version
Push a git tag to release a new version:
git tag v1.0.0
git push origin v1.0.0