mercredi 15 janvier 2020

Is there a way to define steps within a TestCafe test?

My project requires tests to be broken down into steps w/ associated pass/fail results. I found some old documentation where this is possible: https://testcafe.devexpress.com/Documentation/Getting_Started/Test_Code_Guide/

So something list this:

test('My Test', async t => {
  step('Step 1', async () => {
    // ...do something
  })

  step('Step 2', async () => {
    // ...do something
  })

  ...
})

Are test steps possible with the new version of TestCafe?

Aucun commentaire:

Enregistrer un commentaire