Files
LivingDexTracker/tests/bdd/features/dex-composition.feature
T
Josh Creek de39dc78ea test: replace ad-hoc tests with a layered suite and CI workflow
Splits testing into five layers so a failure points at the responsible one:

- tests/unit    isolated utility, repository and service tests
- tests/data    validates the tracked Pokémon, game, region and dex files
- tests/integration  schema, views, constraints, RLS and repositories
- tests/bdd     executable Gherkin for user-visible behaviour
- tests/build   service worker and manifest artifacts per build variant

Replaces the two Playwright specs in client-test/ and the two Vitest files in
test/. Adds a GitHub Actions workflow running the layers as separate jobs, a
mock OAuth provider server so the Drive and Dropbox scenarios never touch real
accounts, and a wrapper that reads the local Supabase keys from
`supabase status` rather than hard-coding them.

Extracts the pure formatting helpers out of PokedexExportService so they can be
unit tested, and makes the provider endpoints configurable so the mock server
can stand in for Google and Dropbox.
2026-09-13 17:38:41 +01:00

33 lines
1.0 KiB
Gherkin

Feature: Pokédex composition
As a trainer
I want the correct Pokémon in each configured dex
So that completion totals are trustworthy
Background:
Given I am signed in
Scenario: Build a national Living Dex from canonical forms
Given I have a Living Dex named "National"
When I inspect its entries without forms
Then it contains 1025 unique species
And named default forms are represented once
Scenario: Include all supported forms
Given I have a Form Dex named "Forms"
When I inspect its entries with forms
Then every entry identity is unique
And Basculin has 3 forms
And Alcremie has 63 forms
And Unown has 28 forms
Scenario: Render shiny artwork
Given I have a Shiny Dex named "Shinies"
When I view the Pokédex
Then its Pokémon use shiny sprites
Scenario: Respect game and dex scope
Given I have a Form Dex named "Black Forms" scoped to game "Black" and dex "Unova"
When I inspect its entries with forms
Then Rotom includes its named default form without duplicate forms