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

fix: correctly build link to error details #606

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

DudaGod
Copy link
Member

@DudaGod DudaGod commented Oct 3, 2024

What is done

It turned out that after refactoring, extractErrorDetails is called several times - https://github.com/gemini-testing/html-reporter/blob/v10.7.0/lib/adapters/test-result/utils/index.ts#L50-L64 which builds the path to the file and calls Date.now() inside it. As a result, each call generates a unique path. And one is used for link inside html-reporter and another for save file in folder.

Now we will use the already existing value.

@@ -21,7 +20,7 @@ export class TreeTestResultTransformer {
return {
..._.omit(result, 'imagesInfo'),
attempt: testResult.attempt,
errorDetails: extractErrorDetails(testResult)
errorDetails: testResult.errorDetails
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have tests for these files

@DudaGod DudaGod merged commit 5e68811 into master Oct 3, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants