From 2757daf8152d9562f718415d1250750c06cfd937 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 01:53:49 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump vscode-extension-tester from 8.8.1 to 8.8.2 Bumps [vscode-extension-tester](https://github.com/redhat-developer/vscode-extension-tester/tree/HEAD/packages/extester) from 8.8.1 to 8.8.2. - [Release notes](https://github.com/redhat-developer/vscode-extension-tester/releases) - [Commits](https://github.com/redhat-developer/vscode-extension-tester/commits/v8.8.2/packages/extester) --- updated-dependencies: - dependency-name: vscode-extension-tester dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 42 ++++++++++++++++++++---------------------- package.json | 2 +- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index a9eb2b8..9e7f5f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,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", @@ -874,9 +874,9 @@ } }, "node_modules/@redhat-developer/locators": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@redhat-developer/locators/-/locators-1.6.1.tgz", - "integrity": "sha512-Q1HlBEMsmcVdUMsAm7H9q59+Sq4GCvxj24Tsx94SRC5PNsk+jce7cgFWp5LT0K+Y991fndYRZnseWHFcxJy+xg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@redhat-developer/locators/-/locators-1.6.2.tgz", + "integrity": "sha512-Pu2tYm+5dlds6bYzKXv8WxVkTVbXUTjrz/shJovORlHSBjE9S/9Tgu/p57FKxXjsnPz/qyU2q159a6r3xtm2gA==", "dev": true, "peerDependencies": { "@redhat-developer/page-objects": ">=1.0.0", @@ -884,9 +884,9 @@ } }, "node_modules/@redhat-developer/page-objects": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@redhat-developer/page-objects/-/page-objects-1.6.1.tgz", - "integrity": "sha512-5JffPElGOFUldGileZ42pYcxlRWXueo2d0ZrLCH6wCESRd0nUMRJoUFrq6AXelCMpvEva91EkNYlKw9hU9F/yg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/@redhat-developer/page-objects/-/page-objects-1.6.2.tgz", + "integrity": "sha512-Il+aIl+1Qtfk6dJhwKSti82hPBwhb+5ig1quYZC5GFiIb2S/ug0fEcTM4Q+hcJSRr2tn/9toWI1wOPNP+3U+eA==", "dev": true, "dependencies": { "clipboardy": "^4.0.0", @@ -1153,11 +1153,10 @@ "license": "MIT" }, "node_modules/@types/selenium-webdriver": { - "version": "4.1.26", - "resolved": "https://registry.npmjs.org/@types/selenium-webdriver/-/selenium-webdriver-4.1.26.tgz", - "integrity": "sha512-PUgqsyNffal0eAU0bzGlh37MJo558aporAPZoKqBeB/pF7zhKl1S3zqza0GpwFqgoigNxWhEIJzru75eeYco/w==", + "version": "4.1.27", + "resolved": "https://registry.npmjs.org/@types/selenium-webdriver/-/selenium-webdriver-4.1.27.tgz", + "integrity": "sha512-ALqsj8D7Swb6MnBQuAQ58J3KC3yh6fLGtAmpBmnZX8j+0kmP7NaLt56CuzBw2W2bXPrvHFTgn8iekOQFUKXEQA==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", "@types/ws": "*" @@ -1201,11 +1200,10 @@ "license": "MIT" }, "node_modules/@types/ws": { - "version": "8.5.12", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.12.tgz", - "integrity": "sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==", + "version": "8.5.13", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz", + "integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*" } @@ -10536,14 +10534,14 @@ "license": "MIT" }, "node_modules/vscode-extension-tester": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/vscode-extension-tester/-/vscode-extension-tester-8.8.1.tgz", - "integrity": "sha512-Myhsgy5MF8Hq/H+JcFJK4II4q2qUVJFuDhWKvThtlQuvVyoDVHm/cgiDfoDI5sDLMsTxfv716o+xpzm1fAIumA==", + "version": "8.8.2", + "resolved": "https://registry.npmjs.org/vscode-extension-tester/-/vscode-extension-tester-8.8.2.tgz", + "integrity": "sha512-0VsAB7uBK9uC997YmXXKe5E15uMVV4mhyWN8lavCYIMLAVETezuuKbzyglFrSLfGnG7Ha21i4+HTqzyQGUdv+w==", "dev": true, "dependencies": { - "@redhat-developer/locators": "^1.6.1", - "@redhat-developer/page-objects": "^1.6.1", - "@types/selenium-webdriver": "^4.1.26", + "@redhat-developer/locators": "^1.6.2", + "@redhat-developer/page-objects": "^1.6.2", + "@types/selenium-webdriver": "^4.1.27", "@vscode/vsce": "^3.2.1", "c8": "^10.1.2", "commander": "^12.1.0", @@ -10555,7 +10553,7 @@ "hpagent": "^1.2.0", "js-yaml": "^4.1.0", "sanitize-filename": "^1.6.3", - "selenium-webdriver": "^4.25.0", + "selenium-webdriver": "^4.26.0", "targz": "^1.0.1", "unzipper": "^0.12.3" }, diff --git a/package.json b/package.json index 9811d8a..9b6adcb 100644 --- a/package.json +++ b/package.json @@ -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", From 7530695a710445a0e0d76790e1d9f9ea4e759c3c Mon Sep 17 00:00:00 2001 From: Ramona Hartinger Date: Mon, 11 Nov 2024 07:31:48 +0100 Subject: [PATCH 2/2] fix: added fix for failing e2e test --- src/test/e2e/LiquibaseGUITestUtils.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/test/e2e/LiquibaseGUITestUtils.ts b/src/test/e2e/LiquibaseGUITestUtils.ts index 12e97d6..3394352 100644 --- a/src/test/e2e/LiquibaseGUITestUtils.ts +++ b/src/test/e2e/LiquibaseGUITestUtils.ts @@ -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 { - 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);