Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Latest commit

 

History

History
48 lines (34 loc) · 1.01 KB

Functions.md

File metadata and controls

48 lines (34 loc) · 1.01 KB

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)