Skip to content

Commit

Permalink
Add more error handling in test
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Nov 18, 2024
1 parent 12bdad4 commit 32fa6e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ When("a user opens Zowe Explorer", async function () {

Then("the Show Config dialog should appear", async function () {
this.workbench = await browser.getWorkbench();
console.error(require("fs").readFileSync(process.env.ZOWE_CLI_HOME + "/zowe.config.json")); // eslint-disable-line
await browser.executeWorkbench((vscode: any) => {
vscode.commands.executeCommand("vscode.open", process.env.ZOWE_CLI_HOME + "/zowe.config.json");
});

let configNotification: Notification;
const notificationCenter = await (this.workbench as Workbench).openNotificationsCenter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export const config: Options.Testrunner = {
const backupConfigPath = joinPath(process.env["ZOWE_CLI_HOME"], "zowe.config.bkp");
renameSync(configPath, backupConfigPath);
writeFileSync(configPath, "invalidjson");
console.error(require("fs").readFileSync(process.env.ZOWE_CLI_HOME + "/zowe.config.json", "utf-8")); // eslint-disable-line
}
},

Expand Down

0 comments on commit 32fa6e0

Please sign in to comment.