-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not activate extension if config is not found
- Loading branch information
Showing
6 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "empty", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC" | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { expect } from "@wdio/globals"; | ||
import { VSCodePO } from "../../page-objects"; | ||
|
||
describe("Activation on open Testing bar", () => { | ||
it("should do not try to read tests", async () => { | ||
const vscodePO = await VSCodePO.create(); | ||
const testingViewControl = vscodePO.getTestingViewControl(); | ||
await testingViewControl.open(); | ||
|
||
const sidebar = vscodePO.getTestingSideBar(); | ||
const [firstSection] = await sidebar.getSections(); | ||
const items = await firstSection.getVisibleItems(); | ||
|
||
expect(items).toHaveLength(0); | ||
|
||
const webview = await vscodePO.getWebviewByTitle("Testplane"); | ||
expect(webview.elem).toBeDisplayed(); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../tsconfig.common.json", | ||
"include": ["specs", "wdio.conf.ts"] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import path from "node:path"; | ||
import { getWdioConfig } from "../utils"; | ||
import type { Options } from "@wdio/types"; | ||
|
||
export const config: Options.Testrunner = getWdioConfig({ | ||
extensionPath: process.cwd(), | ||
workspacePath: path.resolve(process.cwd(), "samples/empty"), | ||
}); |