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

.wallClockStartedAt?.getTime is not a function #1225

Closed
bogdan-lucaci opened this issue Jan 20, 2025 · 0 comments · Fixed by #1228
Closed

.wallClockStartedAt?.getTime is not a function #1225

bogdan-lucaci opened this issue Jan 20, 2025 · 0 comments · Fixed by #1228
Assignees
Labels
theme:cypress type:bug Something isn't working

Comments

@bogdan-lucaci
Copy link

bogdan-lucaci commented Jan 20, 2025

Describe the bug
When Cypress executes a series of tests, it crashes at the start of the second test with this error:

Uncaught TypeError: t.wallClockStartedAt?.getTime is not a function
Image

test.wallClockStartedAt is a string (not a Date object) :
Image

and getTestStartData from src/browser/utils.ts does not handle it properly

start: test.wallClockStartedAt?.getTime() || Date.now(),

To Reproduce
Run multiple tests in a single Cypress run

Expected behavior
Cypress run should not crash

Desktop (please complete the following information):

  • OS: Windows 10
  • Chrome 128.0.6613.85
  • Cypress 13.13.3
  • allure-cypress 3.0.9
@delatrie delatrie added type:bug Something isn't working theme:cypress labels Jan 20, 2025
@epszaw epszaw mentioned this issue Jan 24, 2025
2 tasks
@epszaw epszaw self-assigned this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:cypress type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants