Skip to content

Commit

Permalink
fix test start data util
Browse files Browse the repository at this point in the history
  • Loading branch information
epszaw committed Jan 24, 2025
1 parent a0cf483 commit 1da6bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/allure-cypress/src/browser/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const uint8ArrayToBase64 = (data: unknown) => {

export const getTestStartData = (test: CypressTest) => ({
...getNamesAndLabels(Cypress.spec, test),
start: test.wallClockStartedAt?.getTime() || Date.now(),
start: test.wallClockStartedAt?.getTime?.() || Date.now(),
});

export const getTestStopData = (test: CypressTest) => ({
Expand Down

0 comments on commit 1da6bc8

Please sign in to comment.