setup

Last updated 3 months ago

setup(settings)

Declares the settings for the test, overriding settings exported at the top of the test.

_This is a secondary syntax to export const settings = {} which functions exactly the same way.

Example:

export default () => {
setup({ waitTimeout: 60 })
}

step(name, fn)

  • name Step Name

  • fn <StepFunction> Actual implementation of step

  • returns:

Declares each step in your test. This must go within your main test expression.

Example:

export default () => {
step("Step 1", async browser => {
await browser.visit("https://example.com")
})
step("Step 2", async browser => {})
step("Step 3", async browser => {})
}

step(name, options, fn)

[StepOptions]: Interfaces.md#stepoptions