ExpertPW-API-00260 minutesPlaywright

Prove API sandbox isolation and reset

Parallel workers must never see one another’s created records and reset must restore the seed.

  • api
  • isolation
  • reset

Objective

What to automate

Create independent sessions, mutate one, prove isolation, then reset and verify seed restoration.

Preconditions and test data

Preconditions

  • Use a fresh isolated Practice Lab browser context.
  • Open the fixture identified by FX-FORM-001, FX-TABLE-001.

Test data

  • session A customer: isolated.a@example.test
  • session B

Expected result

Session B never sees session A data; reset removes overlays and restores all seed records.

Progressive hints

Hint 1

Use distinct header-mode session IDs.

Hint 2

Query the same collection from both sessions.

Hint 3

Send the reset CSRF token for session A and compare counts to seed metadata.

I’ve tried it — show solution
  1. Use distinct header-mode session IDs.
  2. Query the same collection from both sessions.
  3. Send the reset CSRF token for session A and compare counts to seed metadata.