Cypress / Quiz
Fixtures & the Art of Seeding
cy.fixture, cy.task, cy.request: three seeding channels, three different blast radii. Feed your tests deterministic data or feed them to the flake gods.
- Difficulty
- Easy
- Format
- Quiz
- Points
- 100
- Estimate
- 9 min
// MISSION BRIEF
Your Mission
Tests that assert on whatever data happens to exist are hostages. This drill covers the fixture folder, stubbing network data, and the fast paths (task, request, exec) for seeding real state.
Six questions. Speed bonus active.
// FIRST CONTACT
Battle teaser
cy.fixture('users.json') loads data from:
- AThe application's public/ directory
- BlocalStorage of the app under test
- CThe cypress/fixtures folder, the project's canonical home for canned test data
- DA running fixtures microservice
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
cypresstest-datae2e-testingweb