-
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.
Merge pull request #15 from gemini-testing/TESTPLANE-326.ability_to_s…
…et_env_variables feat: ability to specify "env" via vscode settings
- Loading branch information
Showing
8 changed files
with
56 additions
and
4 deletions.
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
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"testplane.configPath": "./another-config/testplane.config.ts" | ||
"testplane.configPath": "./another-config/testplane.config.ts", | ||
"testplane.env": { | ||
"TESTPLANE_SKIP_BROWSERS": "another-bro" | ||
} | ||
} |
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
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
File renamed without changes.
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,25 @@ | ||
import { expect } from "@wdio/globals"; | ||
import { VSCodePO } from "../../page-objects"; | ||
|
||
describe(".vscode/settings.json", () => { | ||
it("should be skipped by 'TESTPLANE_SKIP_BROWSERS' env variable from user settings", async () => { | ||
const vscodePO = await VSCodePO.create(); | ||
const testingViewControl = vscodePO.getTestingViewControl(); | ||
await testingViewControl.open(); | ||
|
||
const sidebar = vscodePO.getTestingSideBar(); | ||
await sidebar.waitTestsRead(); | ||
await sidebar.runAllTests(); | ||
await sidebar.waitTestsRunComplete(); | ||
|
||
await expect(await sidebar.getTestsRunStats()).toBe("0/0"); | ||
|
||
const [firstSection] = await sidebar.getSections(); | ||
const [mainTreeItem] = await firstSection.getVisibleItems(); | ||
await mainTreeItem.expandAll(); | ||
|
||
const items = await firstSection.getVisibleItems(); | ||
|
||
await expect(await items[0].getAriaLabelAttr()).toContain("tests (Skipped)"); | ||
}); | ||
}); |