fix(web-awesome): fix group sorting by order/duration; add defaultSortBy option#676
Merged
Conversation
Groups were always sorted by statistic regardless of the selected sort mode. Now Order sorts groups by the earliest leaf groupOrder, and Duration sorts groups by aggregated leaf duration.
Allows setting the default tree sort order via allurerc.mjs:
export default defineConfig({
plugin: {
awesome: { defaultSortBy: "name,asc" }
}
});
localStorage takes precedence over the config value, so user
selections are still preserved across sessions.
baev
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's changed
Closes #651, closes #654.
Bug fix: group sorting ignored Order and Duration (#651)
In the test tree, groups were always sorted by statistic (failed first) regardless of the selected sort mode — only leaves responded to Order/Duration selection.
Fix: Groups are now sorted correctly:
groupOrderamong their leaves (when the first test in the group ran)Feature: configurable default sort order (#654)
Previously the default sort was hardcoded to
order,asc. Now it can be set viaallurerc.mjs:The user's manually selected sort is preserved in
localStorageand takes priority over the configured default.Bug fix: Test body collapsed by default for passing tests
The Test body section was closed by default when a test had no failed steps. The default expansion policy is now
expanded, so Test body is always open when navigating to a test result. The previous behavior can be restored via config: