Skip to content

Warning: .then() only accepts functions but was passed: [object Undefined] when running Cypress in Docker #15281

@blomqma

Description

@blomqma

Current behavior

So when running Cypress inside a Docker container with node:15.10.0-buster-slim image and all the required runtime dependencies from cypress/base Docker image, the terminal will be full of the following output on literally every test case.

Screenshot 2021-03-02 at 10 28 29

Desired behavior

Obviously, no such output should exist.

Test code to reproduce

I doubt this has nothing to do with the syntax of my test cases themselves, the error reproduces on every test with even empty contents so anything can be used - I think it's related to the node version somehow.

Versions

Cypress: 6.5.0
Docker image: node:15.10.0-buster-slim

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions