Skip to content

Commit

Permalink
tests: Add feature for accessing ZE settings
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
  • Loading branch information
traeok committed May 14, 2024
1 parent 3470287 commit a346266
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/zowe-explorer/__tests__/features/Settings.feature
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
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();
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ When("a user locates the Zowe Explorer icon in the side bar", async () => {
});
Then("the user can click on the Zowe Explorer icon", async () => {
const activityBar = (await browser.getWorkbench()).getActivityBar();
await activityBar.wait();
const zeContainer = await activityBar.getViewControl("Zowe Explorer");
await zeContainer.wait();
await zeContainer.openView();
});

Expand Down

0 comments on commit a346266

Please sign in to comment.