Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels