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:

  1. AThe application's public/ directory
  2. BlocalStorage of the app under test
  3. CThe cypress/fixtures folder, the project's canonical home for canned test data
  4. DA running fixtures microservice
Answers, scoring, hints, and the full battle stay sealed.

// SKILL TAGS

cypresstest-datae2e-testingweb