conditional-fields

Tests show/hide fields based on selection and correct validation of visible fields only.

Content Preview
# Conditional Fields Template

Tests show/hide fields based on selection and correct validation of visible fields only.

## Prerequisites
- Form at `{{baseUrl}}/{{formPath}}`
- Trigger field: `{{triggerField}}` (e.g. country, type selector)
- Conditional field shown when value is `{{triggerValue}}`

---

## TypeScript

```typescript
import { test, expect } from '@playwright/test';

test.describe('Conditional Fields', () => {
  test.beforeEach(async ({ page }) => {
    await page.goto('{{baseUrl}
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/conditional-fields.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering-team/playwright-pro/templates/forms/conditional-fields.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering-team/playwright-pro/templates/forms/conditional-fields.md

Related Skills