Objective
What to automate
Create a user, read it by returned ID, and compare the fields.
Preconditions and test data
Preconditions
- Use a fresh isolated Practice Lab browser context.
- Open the fixture identified by FX-FORM-001.
Test data
name: API Learneremail: api.learner@example.testrole: learner
Expected result
POST returns 201 and GET returns the same synthetic user.
Progressive hints
Hint 1
Create a Lab session and retain its cookie/header.
Hint 2
Send the CSRF token for POST.
Hint 3
Read the Location or response id, then GET that record.
I’ve tried it — show solution
- Create a Lab session and retain its cookie/header.
- Send the CSRF token for POST.
- Read the Location or response id, then GET that record.