Skip to main content
Version: 9.0.0

Steps

Basic Usage

Inside a scenario, you have to define steps for a test. Several steps can be defined inside the same scenario.

Basic Usage

import { Feature, Selector, Controller } from 'test-maker';

Feature(`Example-Feature`)
.Scenario(`Scenario 1`)
.Given(`Step 1`, async (I: Controller, runInfo) => {

})
.When(`Step 2`, async (I: Controller) => {

})
.Then(`Step 3`, async (I: Controller) => {


})

caution

Different steps of a same scenario can't have the same name.