Skip to content

Create New Test

0 characters

Describe what should happen after the test runs. The AI will generate assertions to verify these.

If left blank, tests will run against the default staging environment.

If set, the AI reads source code from this branch instead of the local submodule.

How to write a test spec
Example: Describe a user flow in plain English.

1. Log in as a teacher and navigate to the classes page
2. Select the "john test" class
3. Create a new activity called "Math Quiz"
4. Add a Multiple Choice question:
   - Question: "What is 2 + 2?"
   - Options: A) 3, B) 4, C) 5
   - Correct answer: B
5. Submit the activity

This is all you need to write! The AI will generate the full Playwright test code.

Tips:

- Describe what a user would do step by step

- Include specific data (question text, option values, etc.)

- Mention which question type (MCQ, Identification, etc.)

- Add Expected Outputs to tell the AI what to assert

- The AI knows about all page objects and UI patterns

Two-Phase Workflow
1

QA writes the spec

Create the test with a user flow spec. Click "Mark as Ready" when finalized.

2

Record & verify

Add the deployment URL, then click "Record & Verify". The AI agent records and replays.