-
Notifications
You must be signed in to change notification settings - Fork 233
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
.col-results.collapsed issue if results table order changed #806
Comments
volkan-aslan
added a commit
to volkan-aslan/pytest-html
that referenced
this issue
Apr 9, 2024
Thank you for reporting this. It is a known issue, but was never high on the todo because I never in a million years thought anyone would want the result column anywhere but first. 😆 |
BeyondEvil
pushed a commit
that referenced
this issue
Apr 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Discussed in #801
Originally posted by volkan-aslan March 7, 2024
Hello,
My pytest-html version is: 4.1.1
I am using below code in my conftest file to move results section to right-hand side.
But i noticed that, doing this breaking the following part of the report and it always shows "hide details" even its collapsed.
(This was not a case with version 3.2.0),
When I inspect the html report, I noticed that it's adding the 'collapsed' class to the first td of .collapsible.
This is OK if col-result is the first row, but in my case i moved it to the last so first row is col-testId, therefore it adds collapsed to col-testId.
If I change it to:
resultBody.querySelector('.collapsible > col-result')?.classList.add('collapsed')
then it works as expected.
I am not a java script person, so I don't know if this is the ideal fix but it would be nice to have a solution for such a case.
If there's anything I've done wrong, I'd appreciate it if you could help.
Thanks.
The text was updated successfully, but these errors were encountered: