apply-coupon

Tests valid coupon code, invalid code, and expired coupon handling.

Content Preview
# Apply Coupon Template

Tests valid coupon code, invalid code, and expired coupon handling.

## Prerequisites
- Cart with items totalling `{{cartTotal}}`
- Valid coupon: `{{validCouponCode}}` ({{discountPercent}}% off)
- Expired coupon: `{{expiredCouponCode}}`
- App running at `{{baseUrl}}`

---

## TypeScript

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

test.describe('Apply Coupon', () => {
  test.beforeEach(async ({ page }) => {
    await page.goto('{{baseUrl}}/cart');
  }
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/apply-coupon.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering-team/playwright-pro/templates/checkout/apply-coupon.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/checkout/apply-coupon.md

Related Skills