Skip to content

'dry-run' produces console errors for 'tryTo' instances #3330

@das-en

Description

@das-en

What are you trying to achieve?

Export steps for BDD scenarios.

What do you get instead?

Tests run as expected, but 'dry-run' throws error for 'tryTo' instances.

Provide console output if related. Use --verbose mode for more details.

  Submit randomized answers @Smoke @CRUD @DB
    Given I am on the About You page 
  ✖ FAILED in 11ms


-- FAILURES:

  1) Submission
       Submit randomized answers @Smoke @CRUD @DB:
     tryTo is not defined

The step calls a function that uses tryTo:
const result = await tryTo(() => I.see('This survey requires that your browser accept cookies from our web site.'));

Details

  • CodeceptJS version: 3.3.3
  • NodeJS Version: 16.14.2
  • Operating System: OSX 12.4
  • Playwright
  • Configuration file:
  plugins: {
    screenshotOnFail: {
      enabled: true
    },
    pauseOnFail: {},
    retryFailedStep: {
      enabled: true
    },
    tryTo: {
      enabled: true
    },
    fakerTransform: {
      enabled: true
    },
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions