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
I'm trying to set an initial order on the test name instead of the result status column, but it does not seem to work.
Here is what how i'm doing it:
` def pytest_html_create_batch_table_header(self, cells):
# # Set initial-sort on test column
cells[2].attr.class_ = 'sortable initial-sort'
cells[0].attr.class_ = 'sortable result'
`
I see the sort icon on the 3 column but it's not sorted, it is still sorted for the first column.
Otherwise it would be great to have a hook or command line option for the default sorting column.
The text was updated successfully, but these errors were encountered:
wanam
added a commit
to wanam/pytest-html
that referenced
this issue
Oct 22, 2019
I'm trying to set an initial order on the test name instead of the result status column, but it does not seem to work.
Here is what how i'm doing it:
` def pytest_html_create_batch_table_header(self, cells):
`
I see the sort icon on the 3 column but it's not sorted, it is still sorted for the first column.
Otherwise it would be great to have a hook or command line option for the default sorting column.
The text was updated successfully, but these errors were encountered: