Skip to main content
Version: 9.0.0

Scenario

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

Basic Usage

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

Feature(`Example-Feature`)
.Scenario(`Scenario 1`)
.Given(`Step 1`, async (I,runInfo) => {
})
.Scenario(`Scenario 2`)
.Given(`Step 1`, async (I,runInfo) => {
})
.Scenario(`Scenario 3`)
.Given(`Step 1`, async (I,runInfo) => {
})

caution

Different scenarios of a feature can't have the same name.