# Create Playwright Test Data

> >

- **Type:** Skill
- **Install:** `agentstack add skill-jeffsenso-prestashop-skills-create-playwright-test-data`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [jeffsenso](https://agentstack.voostack.com/s/jeffsenso)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [jeffsenso](https://github.com/jeffsenso)
- **Source:** https://github.com/jeffsenso/prestashop-skills/tree/main/skills/prestashop-module-development/ps9-core-ai/Component/Playwright/skills/create-playwright-test-data

## Install

```sh
agentstack add skill-jeffsenso-prestashop-skills-create-playwright-test-data
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# create-playwright-test-data

Read `@.ai/Component/Playwright/CONTEXT.md` for the stack and data patterns.

Faker data classes and predefined data objects live in the **[ui-testing-library](https://github.com/PrestaShop/ui-testing-library)**, not in the core repo.

## 1. Faker data class

Create `Faker{Domain}` in the ui-testing-library:

- Constructor accepts optional overrides: `new FakerTax({enabled: false})`
- Default values use Faker for randomized but realistic data
- Properties match the entity fields (name, active, rate, etc.)
- Multilingual fields include values for at least EN and FR

```typescript
// Usage in campaigns:
const createTaxData: FakerTax = new FakerTax();
const editTaxData: FakerTax = new FakerTax({enabled: false});
```

**Reference:** check existing Faker classes in the ui-testing-library (e.g. `FakerTax`, `FakerProduct`)

## 2. Predefined data objects

Create `data{Domain}` objects referencing demo install fixtures:

```typescript
// Usage in campaigns:
import {dataTaxes} from '@prestashop-core/ui-testing';
dataTaxes.DefaultFrTax.id;
dataTaxes.DefaultFrTax.name;
```

These reference entities that exist in the vanilla PrestaShop installation — useful for tests that filter/sort existing data rather than creating new entities.

## 3. Local data files (if needed)

For campaign-specific data that doesn't fit in the library, create `tests/UI/data/{domain}.ts` in the core repo:

- XML test data in `tests/UI/data/xml/`
- TypeScript data-driven test arrays for forEach patterns

## Rules

Conventions (no random data in assertions, deterministic Faker values) are in [Playwright/CONTEXT.md](../../CONTEXT.md). Skill-specific reminders:

- Faker classes and predefined data live in the ui-testing-library, not the core repo
- Faker defaults should produce valid entities — a bare `new Faker{Domain}()` must pass validation
- Predefined data references demo install fixtures — don't assume entities exist that aren't in the standard install

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [jeffsenso](https://github.com/jeffsenso)
- **Source:** [jeffsenso/prestashop-skills](https://github.com/jeffsenso/prestashop-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jeffsenso-prestashop-skills-create-playwright-test-data
- Seller: https://agentstack.voostack.com/s/jeffsenso
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
