diff --git a/.github/workflows/playwright-ai-demo.yml b/.github/workflows/playwright-ai-demo.yml new file mode 100644 index 0000000000..ca616a0644 --- /dev/null +++ b/.github/workflows/playwright-ai-demo.yml @@ -0,0 +1,27 @@ +name: Playwright AI Demo + +on: + pull_request: + branches: [ main ] + +jobs: + playwright-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: npm install + + - name: Install Playwright browsers + run: npx playwright install --with-deps + + - name: Run Playwright tests + run: npx playwright test \ No newline at end of file diff --git a/tools/ai-demo/prd.txt b/tools/ai-demo/prd.txt new file mode 100644 index 0000000000..eaa153766e --- /dev/null +++ b/tools/ai-demo/prd.txt @@ -0,0 +1,7 @@ +Feature: Login validation + +Requirements: +1. User must enter email +2. Password must be at least 8 characters +3. Show error message if password is too short +4. Login button should not submit if validation fails \ No newline at end of file