-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip(test/table): Jobs table end-to-end test
Signed-off-by: Trae Yelovich <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
packages/zowe-explorer/__tests__/__e2e__/features/views/JobsTableView.feature
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,11 @@ | ||
Feature: Jobs table view | ||
|
||
Scenario: User wants to list their jobs in the table view | ||
Given a user who is looking at the Zowe Explorer tree views | ||
And the user has a profile in their Data Sets tree | ||
When a user sets a filter search on the profile | ||
Then the profile node will list results of the filter search | ||
And the user has a profile in their Jobs tree | ||
When a user sets a filter search on the profile | ||
Then the profile node will list results of the filter search | ||
And the user can right-click on the jobs profile and select "Show as Table" |
24 changes: 24 additions & 0 deletions
24
packages/zowe-explorer/__tests__/__e2e__/step_definitions/views/JobsTableView.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,24 @@ | ||
/** | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Copyright Contributors to the Zowe Project. | ||
* | ||
*/ | ||
|
||
import { Then } from "@cucumber/cucumber"; | ||
import { ContextMenu } from "wdio-vscode-service"; | ||
|
||
Then('the user can right-click on the jobs profile and select "Show as Table"', async function () { | ||
const ctxMenu: ContextMenu = await this.profileNode.openContextMenu(); | ||
await ctxMenu.wait(); | ||
const showAsTableItem = await ctxMenu.getItem("Show as Table"); | ||
await (await showAsTableItem.elem).click(); | ||
const bottomBar = (await browser.getWorkbench()).getBottomBar(); | ||
await bottomBar.toggle(true); | ||
await (bottomBar as any).openTab("Zowe Resources"); | ||
await (await $("#webviewRoot > div")).waitForExist(); | ||
}); |