Skip to content

Commit

Permalink
wip(test/table): Jobs table end-to-end test
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <[email protected]>
  • Loading branch information
traeok committed Aug 19, 2024
1 parent 7f24fa8 commit e0fb97b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
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"
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();
});

0 comments on commit e0fb97b

Please sign in to comment.