Skip to content

Commit

Permalink
testing: fix invalid state around clearing results (microsoft#194852)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 authored and Alex0007 committed Oct 26, 2023
1 parent 4496f88 commit 8929247
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,12 @@ class ResultSummaryView extends Disposable {
const { results } = this.resultService;
const { count, root, status, duration, rerun } = this.elements;
if (!results.length) {
this.container.innerText = localize('noResults', 'No test results yet.');
if (this.elementsWereAttached) {
this.container.removeChild(root);
this.elementsWereAttached = false;
}
this.container.innerText = localize('noResults', 'No test results yet.');
this.badgeDisposable.clear();
return;
}

Expand Down

0 comments on commit 8929247

Please sign in to comment.