Test Overview
This test demonstrates how describe blocks group related tests in Cypress. It verifies that two simple tests inside a describe block run and pass.
This test demonstrates how describe blocks group related tests in Cypress. It verifies that two simple tests inside a describe block run and pass.
describe('Math operations group', () => { it('adds numbers correctly', () => { expect(2 + 3).to.equal(5); }); it('multiplies numbers correctly', () => { expect(4 * 5).to.equal(20); }); });
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test runner starts and loads the 'Math operations group' describe block | Cypress test runner shows the 'Math operations group' suite ready to run | - | PASS |
| 2 | Runs the first test 'adds numbers correctly' inside the describe block | Test executes the addition assertion | Check that 2 + 3 equals 5 | PASS |
| 3 | Runs the second test 'multiplies numbers correctly' inside the describe block | Test executes the multiplication assertion | Check that 4 * 5 equals 20 | PASS |
| 4 | All tests inside the describe block complete | Cypress test runner shows both tests passed under 'Math operations group' | - | PASS |