-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add feature for accessing ZE settings
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Feature: Settings Actions | ||
|
||
Scenario: User can locate Zowe Explorer settings | ||
When a user navigates to VS Code Settings | ||
Then the user can access the Zowe Explorer settings section |
13 changes: 13 additions & 0 deletions
13
packages/zowe-explorer/__tests__/features/step_definitions/Settings.steps.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,13 @@ | ||
import { Then, When } from "@cucumber/cucumber"; | ||
|
||
// | ||
// Scenario: User can locate Zowe Explorer settings | ||
// | ||
When("a user navigates to VS Code Settings", async function () { | ||
const wb = await browser.getWorkbench(); | ||
this.settingsEditor = await wb.openSettings(); | ||
}); | ||
Then("the user can access the Zowe Explorer settings section", async function () { | ||
const zeSettings = await this.settingsEditor.findSetting("Secure Credentials Enabled", "zowe", "security"); | ||
expect(zeSettings).toExist(); | ||
}); |
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