open-index/open-npm huggingface dataset:
npm package: @maksimer/tests
Description: Add E2E tests to your project.
Author: Maksimer
Latest version: 1.0.9

# Maksimer Tests

Set up a ready-to-use Playwright E2E environment for your WordPress project.

## Usage

```bash
npx @maksimer/tests
```

This will:

* Add a `tests/e2e/` folder to your project
* Copy base configuration and templates
* Prompt for:

  * WordPress URL and credentials
  * WooCommerce shop/cart paths
  * Tests to include
* Scaffold selected tests
* Ensure `@wordpress/scripts` is installed
* Install all dependencies inside the `tests/e2e/` folder

---

## Folder Structure

```
tests/e2e/
├── .env
├── .env.example
├── playwright.config.js
├── tests/
│   └── selected-test-files.test.js
└── package.json
```

---

## Included 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:

```bash
git tag v1.0.0
git push origin v1.0.0
```

---

**[Full Documentation](https://developer.maksimer.dev/?page_id=23)**