Skip to content

Commit

Permalink
Merge pull request #26 from aditosoftware/dependabot/npm_and_yarn/vsc…
Browse files Browse the repository at this point in the history
…ode-extension-tester-8.8.2

chore(deps-dev): bump vscode-extension-tester from 8.8.1 to 8.8.2
  • Loading branch information
rH4rtinger authored Nov 18, 2024
2 parents f39580d + 7530695 commit f63664e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 30 deletions.
42 changes: 20 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@
"sinon": "^19.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.6.3",
"vscode-extension-tester": "^8.8.1",
"vscode-extension-tester": "^8.8.2",
"webfont": "^11.2.26",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
Expand Down
20 changes: 13 additions & 7 deletions src/test/e2e/LiquibaseGUITestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,16 +694,22 @@ export class LiquibaseGUITestUtils {
* @param checkForCacheToBeThere - if `true`, then during the command execution it will check if there is a cache entry to remove
*/
static async removeWholeCache(checkForCacheToBeThere?: boolean): Promise<void> {
const input = await LiquibaseGUITestUtils.startCommandExecution({
let input = await LiquibaseGUITestUtils.startCommandExecution({
command: "Cache: Remove any values from the recently loaded elements...",
});

if (
checkForCacheToBeThere &&
(await this.waitForCommandExecution("There are no elements stored to remove", false))
) {
// no cache elements there, just return
return;
if (checkForCacheToBeThere) {
if (await this.waitForCommandExecution("There are no elements stored to remove", false)) {
// no cache elements there, just return
return;
}

// if the notifications were checked and the input is no longer displayed, reopen the command
if (!(await input.isDisplayed())) {
input = await LiquibaseGUITestUtils.startCommandExecution({
command: "Cache: Remove any values from the recently loaded elements...",
});
}
}

await input.setText(RemoveCacheOptions.WHOLE_CACHE);
Expand Down

0 comments on commit f63664e

Please sign in to comment.