Skip to content

Commit

Permalink
Fix preview tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanluker committed Apr 24, 2022
1 parent 46df75d commit 51fa3e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,4 @@
"extensionDependencies": [
"ms-vscode.live-server"
]
}
}
7 changes: 4 additions & 3 deletions test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ suite("Extension Tests", function() {
// is in the root of the node folder and not inside the default /coverage
await vscode.commands.executeCommand("coverage-gutters.previewCoverageReport");
// Look to see if the webview is open and showing preview coverage
await wait(500);
const reportView = vscode.workspace.textDocuments[0];
expect(reportView.languageId).to.equal("html");
await checkCoverage(() => {
const livePreview = vscode.extensions.getExtension("ms-vscode.live-server");
expect(livePreview?.isActive).to.equal(true);
});
});

test("Run display coverage on a test file that has coverages generated remotely @integration", async () => {
Expand Down

0 comments on commit 51fa3e8

Please sign in to comment.