Skip to content

Commit

Permalink
added terminal copy before reading from clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshwinThomasIBM authored and JoshwinThomasIBM committed Jan 22, 2025
1 parent 4be583f commit 9ef6825
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/utils/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ export function getMvnProjectPath(): string {
VSBrowser.instance.takeScreenshot('before clean slate for clipboard for '+count);
clipboard.writeSync('');//clean slate for clipboard
await workbench.executeCommand('terminal select all');
await workbench.executeCommand('terminal copy');
const text = clipboard.readSync();
console.log("debug:" + text);
VSBrowser.instance.takeScreenshot('after clipboard.readSync text'); ;
console.log("debug: "+count+" -->" + text);
VSBrowser.instance.takeScreenshot('after clipboard.readSync text '+count); ;
if( text.includes(serverStatusCode)){
VSBrowser.instance.takeScreenshot('after text includes server status code for '+count);
foundText = true;
Expand All @@ -143,6 +144,7 @@ export function getMvnProjectPath(): string {
count++;
await workbench.getDriver().sleep(10000);
} while(!foundText && (count <= 20));
VSBrowser.instance.takeScreenshot('after while loop and before clear terminal');
await workbench.executeCommand('terminal clear');
VSBrowser.instance.takeScreenshot('after executing terminal clear ');
return foundText;
Expand Down

0 comments on commit 9ef6825

Please sign in to comment.