Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of null (reading 'seconds') #701

Closed
thccorni opened this issue Apr 29, 2022 · 4 comments
Closed

Cannot read properties of null (reading 'seconds') #701

thccorni opened this issue Apr 29, 2022 · 4 comments

Comments

@thccorni
Copy link

Current behavior

I get the error Cannot read properties of null (reading 'seconds') since version 9.1.1.

image

The reason seems to be that start is null here

Might it be, that start get's not passed the then-chain before?

Desired behavior

No error.

Versions

  • Cypress version: 9.6.0
  • Preprocessor version: 9.1.1
  • Node version: 16.13.2
@badeball
Copy link
Owner

I can’t reproduce this. Can you provide me a minimal example that illustrates the problem?

@thccorni
Copy link
Author

It seems to be related to the existence of an interceptor in a Before step.
https://github.com/thccorni/cypress-cucumber-issue-701 should reproduce the behaviour.

Thanks for your quick reply!

@badeball
Copy link
Owner

Thanks for the example! I've released v9.1.2 which I believe fixes the problem.

@thccorni
Copy link
Author

thccorni commented May 2, 2022

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants