diff --git a/package-lock.json b/package-lock.json index 4c22d2ea7..a151834dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -88,7 +88,7 @@ "lodash": "^4.18.1", "markdown-it": "^14.2.0", "mkdirp": "^3.0.1", - "mocha": "^11.7.5", + "mocha": "^11.7.6", "module-alias": "^2.3.4", "node-yaml-parser": "^0.0.9", "npm-run-all": "^4.1.5", @@ -13146,9 +13146,9 @@ "optional": true }, "node_modules/mocha": { - "version": "11.7.5", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.5.tgz", - "integrity": "sha512-mTT6RgopEYABzXWFx+GcJ+ZQ32kp4fMf0xvpZIIfSq9Z8lC/++MtcCnQ9t5FP2veYEP95FIYSvW+U9fV4xrlig==", + "version": "11.7.6", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.6.tgz", + "integrity": "sha512-nS9xOGbw2I3cjCpxwZAEJ9xK9lmJ08vEkQvLtz4du9ZrF9UrjRpeJGiIgl2Z+Qs++pmB4ecDe48Fwsh+j+j7xA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 364604ed4..e107dabe9 100644 --- a/package.json +++ b/package.json @@ -152,7 +152,7 @@ "lodash": "^4.18.1", "markdown-it": "^14.2.0", "mkdirp": "^3.0.1", - "mocha": "^11.7.5", + "mocha": "^11.7.6", "module-alias": "^2.3.4", "node-yaml-parser": "^0.0.9", "npm-run-all": "^4.1.5", diff --git a/test/ui/suite/componentContextMenu.ts b/test/ui/suite/componentContextMenu.ts index 86603c39d..aaf46ce39 100644 --- a/test/ui/suite/componentContextMenu.ts +++ b/test/ui/suite/componentContextMenu.ts @@ -56,8 +56,15 @@ export function testComponentContextMenu() { } }); + afterEach(async function () { + await VSBrowser.instance.driver.wait( + async () => true, + 1000 + ); + }); + it('Start Dev works', async function () { - this.timeout(60_000); + this.timeout(80_000); await waitForItemStable(getSection, componentName, true); @@ -145,7 +152,7 @@ export function testComponentContextMenu() { expect(terminalText).to.include('Press any key to close this terminal'); }); - it('Start/Stop Dev on Podman works', async () => { + it('Start/Stop Dev on Podman works', async function () { this.timeout(80_000); await stabilizeComponentsView(getSection); @@ -208,7 +215,8 @@ export function testComponentContextMenu() { expect(terminalText).to.contain('Kubernetes components'); }); - it('Show dev terminal works', async () => { + it('Show dev terminal works', async function () { + this.timeout(80_000); const component = await waitForItemStable(getSection, componentName, false); //open menu and select show dev terminal @@ -220,7 +228,7 @@ export function testComponentContextMenu() { expect(tabName).to.contain(expectedTabName); }); - it('Debug works', async () => { + it('Debug works', async function () { this.timeout(80_000); const component = await waitForItemStable(getSection, componentName, false); @@ -240,19 +248,18 @@ export function testComponentContextMenu() { const debugConsole = await bottomBar.openDebugConsoleView(); //wait for console to have text - // await new Promise((res) => setTimeout(res, 1_000)); const bottomBarText = await bottomBar.getDriver().wait( - async () => { - const text = await debugConsole.getText(); + async () => { + const text = await debugConsole.getText(); - if (text && text.includes('App started on PORT')) { - return text; - } + if (text && text.includes('App started on PORT')) { + return text; + } - return null; - }, - 20_000, - 'Debug console did not contain expected output' + return null; + }, + 20_000, + 'Debug console did not contain expected output' ); expect(bottomBarText).to.contain('App started on PORT');