Skip to content

waitForTimeout from config file doesnt work in wait* methods by default #2150

@Elverslane

Description

@Elverslane

What are you trying to achieve?

i want to use any of wait* methods w/o hardcoding timeout because it already declared in config file.

What do you get instead?

instead i get TS error
Screenshot 2020-01-16 at 14 32 17

Details

  • CodeceptJS version: 2.3.6
  • Operating System: macos
  • puppeteer

Here's the relevant part from our config:

   { 
     helpers: {
        Puppeteer: {
          url: "http://localhost",
          waitForTimeout: 2000,
          waitForAction: 500
    }
  }
}

Metadata

Metadata

Assignees

Labels

bugtypescriptChanges for typings or typescript compatibility

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions