Skip to content

Commit

Permalink
Allow skipped/pending tests with context to be expanded (#169)
Browse files Browse the repository at this point in the history
* Allow skipped/pending tests with context to expand

Fixes adamgruber/mochawesome#337

* Update changelog

Co-authored-by: Adam Gruber <adamg@aweber.com>
  • Loading branch information
adamgruber and Adam Gruber committed May 21, 2021
1 parent f1521f0 commit d3bf430
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,8 @@
# mochawesome-report-generator changelog

## [Unreleased]
### Fixed
- Allow pending/skipped tests with context to be expanded [mochawesome #337](https://github.com/adamgruber/mochawesome/issues/337)

## [5.2.0] - 2021-02-16
### Changed
Expand Down Expand Up @@ -172,7 +174,8 @@ No release is complete without a quick hotfix.
## 1.0.0 - 2016-12-18
- Initial release

[Unreleased]: https://github.com/adamgruber/mochawesome-report-generator/compare/5.1.0...HEAD
[Unreleased]: https://github.com/adamgruber/mochawesome-report-generator/compare/5.2.0...HEAD
[5.2.0]: https://github.com/adamgruber/mochawesome-report-generator/compare/5.1.0...5.2.0
[5.1.0]: https://github.com/adamgruber/mochawesome-report-generator/compare/5.0.0...5.1.0
[5.0.0]: https://github.com/adamgruber/mochawesome-report-generator/compare/4.1.0...5.0.0
[4.1.0]: https://github.com/adamgruber/mochawesome-report-generator/compare/4.0.1...4.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/client/components/test/test.js
Expand Up @@ -93,7 +93,7 @@ class Test extends PureComponent {
);
};

const isInactive = pending || skipped || (pass && !enableCode && !context);
const isInactive = !context && (pending || skipped || (pass && !enableCode));

const cxname = cx('component', {
expanded: this.state.expanded,
Expand Down

0 comments on commit d3bf430

Please sign in to comment.