You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the update to 4.1.1 the sorting of our custom columns stopped working.
First of all, the "sorting" only happens when I click on the header twice (which is not a hard requirement by us).
Second, the sorting does not work at all.
Our values in one row are e.g. ["CKD ATBD 6.2", "L1 ATBD 5.1", "CKD ATBD 8.1", "CKD ATBD 4.7"], this is already the output of the sorting. Interestingly the descending sorting keeps this wrong ordering in reverse. We have also tried this with only the numerical values, same result.
Another column simply contains short words separated by spaces, and the ordering is also broken there.
defpytest_html_results_table_row(report, cells):
ref="CKD ATBD 5.1"# extracted from report in actual codekey="Fancy"# extracted from report in actual codecells.insert(1, f"<td>{ref}</td>")
cells.insert(1, f"<td>{key}</td>")
# Remove links columncells.pop()
According to the documentation. The row td's need a class name that matches the data-column-type. So in your case, this should solved it:
defpytest_html_results_table_row(report, cells):
ref="CKD ATBD 5.1"# extracted from report in actual codekey="Fancy"# extracted from report in actual codecells.insert(1, f"<td class=\"col-ref\">{ref}</td>")
cells.insert(1, f"<td class=\"col-keydata\">{key}</td>")
# Remove links columncells.pop()
Thanks! That fixes it.
I thought that this was just a css class for styling.
Good to know that it needs to be exactly this format (col-{data-column-type}).
With the update to 4.1.1 the sorting of our custom columns stopped working.
First of all, the "sorting" only happens when I click on the header twice (which is not a hard requirement by us).
Second, the sorting does not work at all.
Our values in one row are e.g. ["CKD ATBD 6.2", "L1 ATBD 5.1", "CKD ATBD 8.1", "CKD ATBD 4.7"], this is already the output of the sorting. Interestingly the descending sorting keeps this wrong ordering in reverse. We have also tried this with only the numerical values, same result.
Another column simply contains short words separated by spaces, and the ordering is also broken there.
The header is modified the following way
And the cells are added:
Here is our environment.
The text was updated successfully, but these errors were encountered: