prestashop/prestashop/create-playwright-test-data

Claude Code and agent skill by prestashop/prestashop

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Create Faker data classes and predefined data objects for a new entity in the ui-testing-library. These are imported by campaigns for consistent test data generation. Trigger: "create test data for {Domain}".

Install

npx vskill@latest install prestashop/prestashop/create-playwright-test-data

SKILL.md

The same SKILL.md was published earlier as prestashop/prestashop/create-playwright-test-data.

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. 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

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
9,224
Repository forks
5,046
7-day trend score
46

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/prestashop/prestashop/create-playwright-test-data/badge)](https://verified-skill.com/skills/prestashop/prestashop/create-playwright-test-data)

Something wrong with this skill or its page? Tell us.