Skip to content

test: add generated playwright cases for level-based-available-rewards#7

Open
Kai-Li-Galxe wants to merge 1 commit intomainfrom
test/spec-level-based-available-rewards-20260325
Open

test: add generated playwright cases for level-based-available-rewards#7
Kai-Li-Galxe wants to merge 1 commit intomainfrom
test/spec-level-based-available-rewards-20260325

Conversation

@Kai-Li-Galxe
Copy link
Collaborator

Summary

Generated Playwright test cases for OpenSpec 2026-01-20-add-level-based-available-rewards.

What's included

  • Test directory: test/playwright/spec-level-based-available-rewards-20260325
  • case.ts: 22 structured test cases with source code references
  • spec file: add-level-based-available-rewards.spec.ts — 14 automated E2E tests + 8 pending (require mock/unit infra)
  • package.json: Added pw:spec:level-based-available-rewards script
  • README-claw.md: Appended script documentation

Test coverage

Priority Count
High 12
Medium 8
Low 2
Total 22

Run command

npm run pw:spec:level-based-available-rewards

Env vars

  • PW_SPACE_ID_REWARDS_HUB — Space ID with rewards hub access (required)
  • PW_EXPECT_SPACE_TIER_LEVEL=1 — For Level 1 empty-state tests (optional)

Modules covered

  1. Data structure validation (availableRewards array)
  2. Level switch — Available to Apply display
  3. Level switch — Your Benefits regression
  4. UI / interaction (empty state, View Benefits, Apply button)
  5. Boundary & exception handling

- New test directory: spec-level-based-available-rewards-20260325
- case.ts: 22 structured test cases (8 high, 8 medium, 2 low priority)
- add-level-based-available-rewards.spec.ts: 14 automated E2E tests + 8 pending
- package.json: added pw:spec:level-based-available-rewards script
- README-claw.md: appended script documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant