From 8991c24e62c97d3f7e214c4748051d2e0f96b61d Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:05:47 -0400 Subject: [PATCH 01/11] Revert "Running e2e tests using VSCode v1.92.2 (#1622)" This reverts commit d2d4ce9b32939dc35048a7413d6ac84e0d8cda36. --- tests/e2e/wdio.conf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/wdio.conf.ts b/tests/e2e/wdio.conf.ts index 04ae52e28..5b9da1c1f 100644 --- a/tests/e2e/wdio.conf.ts +++ b/tests/e2e/wdio.conf.ts @@ -93,7 +93,7 @@ export const config: Options.Testrunner = { capabilities: [ { browserName: 'vscode', - browserVersion: '1.92.2', + browserVersion: 'stable', 'wdio:vscodeOptions': { extensionPath, workspacePath: extensionPath, From 3d397b99f7bd960f1e2051d0e30be07aa645bcaa Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:25:23 -0500 Subject: [PATCH 02/11] Bump chromedriver to v127.0.3 --- tests/e2e/package-lock.json | 2 +- tests/e2e/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/package-lock.json b/tests/e2e/package-lock.json index 26843a2d1..ec65e50e3 100644 --- a/tests/e2e/package-lock.json +++ b/tests/e2e/package-lock.json @@ -9,7 +9,7 @@ "@wdio/local-runner": "^8.40.2", "@wdio/mocha-framework": "^8.40.3", "@wdio/spec-reporter": "^8.27.2", - "chromedriver": "^127.0.2", + "chromedriver": "^127.0.3", "comment-json": "^4.2.5", "expect-webdriverio": "^4.15.4", "runme": "^3.0.1", diff --git a/tests/e2e/package.json b/tests/e2e/package.json index 654a3edaa..dd2aff167 100644 --- a/tests/e2e/package.json +++ b/tests/e2e/package.json @@ -7,7 +7,7 @@ "@wdio/local-runner": "^8.40.2", "@wdio/mocha-framework": "^8.40.3", "@wdio/spec-reporter": "^8.27.2", - "chromedriver": "^127.0.2", + "chromedriver": "^127.0.3", "comment-json": "^4.2.5", "expect-webdriverio": "^4.15.4", "runme": "^3.0.1", From 3fa2e7271dd477e9759091d62d8ecee2861becc4 Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:37:05 -0500 Subject: [PATCH 03/11] Temporary disable reloadwindow --- tests/e2e/specs/identity/identity.empty-file.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.empty-file.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.empty-file.none.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts | 4 ++-- .../e2e/specs/identity/identity.existent-cell.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts | 4 ++-- .../e2e/specs/identity/identity.existent-doc.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.cell.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.none.e2e.ts | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts index 7adc1d117..cf62fb5b5 100644 --- a/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts index d826d2908..1928ac83d 100644 --- a/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts index 3cf89b575..7848163ec 100644 --- a/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts index 34fce6ead..c7c7411a6 100644 --- a/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts index f06f40d88..0e07bcc95 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts index 672b3111b..ceb8a82fd 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts index 70b2677ac..3afb35d07 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts index d9eb43eda..29ca35203 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts index 2e8667560..ff50363c6 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts index 7ddfb0dcc..3f252ee28 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts index 4f76ec556..383031364 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts @@ -14,8 +14,8 @@ import { const __dirname = path.dirname(url.fileURLToPath(import.meta.url)) async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts index 7bbe09931..dc053dfe8 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.all.e2e.ts b/tests/e2e/specs/identity/identity.shebang.all.e2e.ts index 63b93c0b7..bf3ae4703 100644 --- a/tests/e2e/specs/identity/identity.shebang.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.all.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts b/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts index c0358f08d..af85aae0d 100644 --- a/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.document.e2e.ts b/tests/e2e/specs/identity/identity.shebang.document.e2e.ts index 26b1f5100..bc01255f4 100644 --- a/tests/e2e/specs/identity/identity.shebang.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.document.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.none.e2e.ts b/tests/e2e/specs/identity/identity.shebang.none.e2e.ts index 35ca75d2d..461c8fd88 100644 --- a/tests/e2e/specs/identity/identity.shebang.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.none.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') + // const workbench = await browser.getWorkbench() + // await workbench.executeCommand('Developer: Restart Extension Host') } async function removeAllNotifications() { const workbench = await browser.getWorkbench() From c89523fa08f0152ad6641c14e88504997bddfcdd Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:04:26 -0500 Subject: [PATCH 04/11] Revert "Temporary disable reloadwindow" This reverts commit 17bedf2a4308596f344389429782ef043247e2ac. --- tests/e2e/specs/identity/identity.empty-file.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.empty-file.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.empty-file.none.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts | 4 ++-- .../e2e/specs/identity/identity.existent-cell.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts | 4 ++-- .../e2e/specs/identity/identity.existent-doc.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.all.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.cell.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.document.e2e.ts | 4 ++-- tests/e2e/specs/identity/identity.shebang.none.e2e.ts | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts index cf62fb5b5..7adc1d117 100644 --- a/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts index 1928ac83d..d826d2908 100644 --- a/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts index 7848163ec..3cf89b575 100644 --- a/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts index c7c7411a6..34fce6ead 100644 --- a/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts @@ -8,8 +8,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts index 0e07bcc95..f06f40d88 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts index ceb8a82fd..672b3111b 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts index 3afb35d07..70b2677ac 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts index 29ca35203..d9eb43eda 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts index ff50363c6..2e8667560 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts index 3f252ee28..7ddfb0dcc 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts index 383031364..4f76ec556 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts @@ -14,8 +14,8 @@ import { const __dirname = path.dirname(url.fileURLToPath(import.meta.url)) async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts index dc053dfe8..7bbe09931 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.all.e2e.ts b/tests/e2e/specs/identity/identity.shebang.all.e2e.ts index bf3ae4703..63b93c0b7 100644 --- a/tests/e2e/specs/identity/identity.shebang.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.all.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts b/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts index af85aae0d..c0358f08d 100644 --- a/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.document.e2e.ts b/tests/e2e/specs/identity/identity.shebang.document.e2e.ts index bc01255f4..26b1f5100 100644 --- a/tests/e2e/specs/identity/identity.shebang.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.document.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { diff --git a/tests/e2e/specs/identity/identity.shebang.none.e2e.ts b/tests/e2e/specs/identity/identity.shebang.none.e2e.ts index 461c8fd88..35ca75d2d 100644 --- a/tests/e2e/specs/identity/identity.shebang.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.none.e2e.ts @@ -9,8 +9,8 @@ import { } from '../../helpers/index.js' async function reloadWindow() { - // const workbench = await browser.getWorkbench() - // await workbench.executeCommand('Developer: Restart Extension Host') + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Developer: Reload Window') } async function removeAllNotifications() { const workbench = await browser.getWorkbench() From 278f9ddaa8e13b0aebed0ac77043f5c0b56bfc3f Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:20:33 -0500 Subject: [PATCH 05/11] Disable lifecycle identity tests --- tests/e2e/wdio.conf.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/e2e/wdio.conf.ts b/tests/e2e/wdio.conf.ts index 5b9da1c1f..86f782ef9 100644 --- a/tests/e2e/wdio.conf.ts +++ b/tests/e2e/wdio.conf.ts @@ -59,9 +59,7 @@ export const config: Options.Testrunner = { // specs: ['./specs/**/*.e2e.ts'], // Patterns to exclude. - exclude: [ - // 'path/to/excluded/files' - ], + exclude: ['./specs/**/identity/*.e2e.ts'], // // ====== // Runner From d1539c0c696ebf33a644011cf65a936135cff257 Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Sat, 21 Sep 2024 11:11:51 -0500 Subject: [PATCH 06/11] Bump chromedriver in the e2e-tests group across 1 directory Bumps the e2e-tests group with 1 update in the / directory: [chromedriver](https://github.com/giggio/node-chromedriver). Updates `chromedriver` from 128.0.3 to 129.0.0 - [Commits](https://github.com/giggio/node-chromedriver/compare/128.0.3...129.0.0) --- updated-dependencies: - dependency-name: chromedriver dependency-type: direct:development update-type: version-update:semver-major dependency-group: e2e-tests ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- tests/e2e/wdio.conf.ts | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5e53063c5..f3e042b60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -76,7 +76,7 @@ "@wdio/local-runner": "^8.40.5", "@wdio/mocha-framework": "^8.40.3", "@wdio/spec-reporter": "^8.40.3", - "chromedriver": "^128.0.3", + "chromedriver": "^129.0.0", "comment-json": "^4.2.5", "eslint": "^8.57.1", "eslint-config-prettier": "^9.0.0", @@ -10793,9 +10793,9 @@ } }, "node_modules/chromedriver": { - "version": "128.0.3", - "resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-128.0.3.tgz", - "integrity": "sha512-Xn/bknOpGlY9tKinwS/hVWeNblSeZvbbJbF8XZ73X1jeWfAFPRXx3fMLdNNz8DqruDbx3cKEJ5wR3mnst6G3iw==", + "version": "129.0.0", + "resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.0.tgz", + "integrity": "sha512-B1ccqD6hDjNrw94FeqdynIotn1ZV/TnFrkRz2Rync2kzSnq6D6IrSkN1w5Pnuvnc98QhN2xujxDXxkqEqy/PWg==", "dev": true, "hasInstallScript": true, "dependencies": { diff --git a/package.json b/package.json index ab485bc79..cc3f0c46f 100644 --- a/package.json +++ b/package.json @@ -1181,7 +1181,7 @@ "@wdio/local-runner": "^8.40.5", "@wdio/mocha-framework": "^8.40.3", "@wdio/spec-reporter": "^8.40.3", - "chromedriver": "^128.0.3", + "chromedriver": "^129.0.0", "comment-json": "^4.2.5", "eslint": "^8.57.1", "eslint-config-prettier": "^9.0.0", diff --git a/tests/e2e/wdio.conf.ts b/tests/e2e/wdio.conf.ts index 86f782ef9..c0476ef54 100644 --- a/tests/e2e/wdio.conf.ts +++ b/tests/e2e/wdio.conf.ts @@ -59,7 +59,8 @@ export const config: Options.Testrunner = { // specs: ['./specs/**/*.e2e.ts'], // Patterns to exclude. - exclude: ['./specs/**/identity/*.e2e.ts'], + // exclude: ['./specs/**/identity/*.e2e.ts'], + exclude: [], // // ====== // Runner From e5548cc490ff0dbeaea0b10aa2074ea9adb4de77 Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Sat, 21 Sep 2024 11:15:00 -0500 Subject: [PATCH 07/11] Sync e2e package.json --- tests/e2e/package-lock.json | 8 ++++---- tests/e2e/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/package-lock.json b/tests/e2e/package-lock.json index ec65e50e3..418db8083 100644 --- a/tests/e2e/package-lock.json +++ b/tests/e2e/package-lock.json @@ -9,7 +9,7 @@ "@wdio/local-runner": "^8.40.2", "@wdio/mocha-framework": "^8.40.3", "@wdio/spec-reporter": "^8.27.2", - "chromedriver": "^127.0.3", + "chromedriver": "^129.0.0", "comment-json": "^4.2.5", "expect-webdriverio": "^4.15.4", "runme": "^3.0.1", @@ -2063,9 +2063,9 @@ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" }, "node_modules/chromedriver": { - "version": "127.0.3", - "resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-127.0.3.tgz", - "integrity": "sha512-trUHkFt0n7jGzNOgkO1srOJfz50kKyAGJ016PyV0hrtyKNIGnOC9r3Jlssz19UoEjSzI/1g2shEiIFtDbBYVaw==", + "version": "129.0.0", + "resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-129.0.0.tgz", + "integrity": "sha512-B1ccqD6hDjNrw94FeqdynIotn1ZV/TnFrkRz2Rync2kzSnq6D6IrSkN1w5Pnuvnc98QhN2xujxDXxkqEqy/PWg==", "hasInstallScript": true, "dependencies": { "@testim/chrome-version": "^1.1.4", diff --git a/tests/e2e/package.json b/tests/e2e/package.json index dd2aff167..3ff68e509 100644 --- a/tests/e2e/package.json +++ b/tests/e2e/package.json @@ -7,7 +7,7 @@ "@wdio/local-runner": "^8.40.2", "@wdio/mocha-framework": "^8.40.3", "@wdio/spec-reporter": "^8.27.2", - "chromedriver": "^127.0.3", + "chromedriver": "^129.0.0", "comment-json": "^4.2.5", "expect-webdriverio": "^4.15.4", "runme": "^3.0.1", From 3ffef9b66825de64640c72d348754a0f3a7a81c0 Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Sat, 21 Sep 2024 11:46:40 -0500 Subject: [PATCH 08/11] Disable promptEnv --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1fe128808..edb5d5755 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -159,19 +159,19 @@ npm run bundle The Runme project has several test stages that you can run individually or as a whole: -```sh {"id":"01HF7VQMH8ESX1EFV4PFZ87Q58","name":"test"} +```sh {"id":"01HF7VQMH8ESX1EFV4PFZ87Q58","name":"test","promptEnv":"no"} export NODE_OPTIONS="--experimental-specifier-resolution=node --max-old-space-size=8192" npx runme run test:format test:lint test:unit test:e2e ``` -```sh {"id":"01J5VPD3TXY1EAZDCXNHN60S77"} +```sh {"id":"01J5VPD3TXY1EAZDCXNHN60S77","promptEnv":"no"} export NODE_OPTIONS="--experimental-specifier-resolution=node --max-old-space-size=8192" -npx runme run test:format test:lint test:unit +npx runme run test:format test:lint test:unit ``` When testing in CI environment, run: -```sh {"id":"01HF7VQMH8ESX1EFV4PGJBDGG0","name":"test:ci"} +```sh {"id":"01HF7VQMH8ESX1EFV4PGJBDGG0","name":"test:ci","promptEnv":"no"} export NODE_OPTIONS="--experimental-specifier-resolution=node --max-old-space-size=8192" npx runme run test:format test:lint test:unit test:e2e:ci ``` From 2c2d3248cdee79eaadc8b2e0704d14de211cefd2 Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Sat, 21 Sep 2024 11:47:04 -0500 Subject: [PATCH 09/11] Disable identity e2e tests --- tests/e2e/wdio.conf.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/wdio.conf.ts b/tests/e2e/wdio.conf.ts index c0476ef54..11cf4e619 100644 --- a/tests/e2e/wdio.conf.ts +++ b/tests/e2e/wdio.conf.ts @@ -59,8 +59,8 @@ export const config: Options.Testrunner = { // specs: ['./specs/**/*.e2e.ts'], // Patterns to exclude. - // exclude: ['./specs/**/identity/*.e2e.ts'], - exclude: [], + exclude: ['./specs/**/identity/*.e2e.ts'], + // exclude: [], // // ====== // Runner From 2b8ccb67e9147ca2cd2069188bf008122abc11db Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:23:51 -0500 Subject: [PATCH 10/11] Refactor e2e tests to avoid window reloading --- package.json | 30 +++++++++++++++++++ src/extension/extension.ts | 16 ++++++++++ .../identity/identity.empty-file.all.e2e.ts | 17 +++-------- .../identity/identity.empty-file.cell.e2e.ts | 17 +++-------- .../identity.empty-file.document.e2e.ts | 17 +++-------- .../identity/identity.empty-file.none.e2e.ts | 17 +++-------- .../identity.existent-cell.all.e2e.ts | 20 ++++--------- .../identity.existent-cell.cell.e2e.ts | 17 +++-------- .../identity.existent-cell.document.e2e.ts | 17 +++-------- .../identity.existent-cell.none.e2e.ts | 17 +++-------- .../identity/identity.existent-doc.all.e2e.ts | 17 +++-------- .../identity.existent-doc.cell.e2e.ts | 17 +++-------- .../identity.existent-doc.document.e2e.ts | 17 +++-------- .../identity.existent-doc.none.e2e.ts | 17 +++-------- .../identity/identity.shebang.all.e2e.ts | 17 +++-------- .../identity/identity.shebang.cell.e2e.ts | 17 +++-------- .../identity/identity.shebang.document.e2e.ts | 17 +++-------- .../identity/identity.shebang.none.e2e.ts | 18 ++++------- tests/e2e/wdio.conf.ts | 6 ++-- tests/extension/extension.test.ts | 2 +- 20 files changed, 117 insertions(+), 213 deletions(-) diff --git a/package.json b/package.json index b029a1ba6..07878ff53 100644 --- a/package.json +++ b/package.json @@ -346,6 +346,36 @@ "category": "Runme", "title": "Click to select your environment", "shortTitle": "Environments" + }, + { + "command": "runme.lifecycleIdentityAll", + "title": "Lifecycle Identity - All", + "category": "Runme", + "description": "Turns on Lifecycle Identity" + }, + { + "command": "runme.lifecycleIdentityNone", + "title": "Lifecycle Identity - None", + "category": "Runme", + "description": "Lifecycle Identity - None" + }, + { + "command": "runme.lifecycleIdentityAll", + "title": "Lifecycle Identity - All", + "category": "Runme", + "description": "Lifecycle Identity - All" + }, + { + "command": "runme.lifecycleIdentityDoc", + "title": "Lifecycle Identity - Document", + "category": "Runme", + "description": "Lifecycle Identity - Document" + }, + { + "command": "runme.lifecycleIdentityCell", + "title": "Lifecycle Identity - Cell", + "category": "Runme", + "description": "Lifecycle Identity - Cell" } ], "menus": { diff --git a/src/extension/extension.ts b/src/extension/extension.ts index 67578014a..d034e6d63 100644 --- a/src/extension/extension.ts +++ b/src/extension/extension.ts @@ -348,6 +348,22 @@ export class RunmeExtension { openFileAsRunmeNotebook(outputFilePath) }), + RunmeExtension.registerCommand('runme.lifecycleIdentityNone', () => + ContextState.addKey(NOTEBOOK_LIFECYCLE_ID, RunmeIdentity.UNSPECIFIED), + ), + + RunmeExtension.registerCommand('runme.lifecycleIdentityAll', () => + ContextState.addKey(NOTEBOOK_LIFECYCLE_ID, RunmeIdentity.ALL), + ), + + RunmeExtension.registerCommand('runme.lifecycleIdentityDoc', () => + ContextState.addKey(NOTEBOOK_LIFECYCLE_ID, RunmeIdentity.DOCUMENT), + ), + + RunmeExtension.registerCommand('runme.lifecycleIdentityCell', () => + ContextState.addKey(NOTEBOOK_LIFECYCLE_ID, RunmeIdentity.CELL), + ), + // Register a command to generate completions using foyle RunmeExtension.registerCommand( 'runme.aiGenerate', diff --git a/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts index 7adc1d117..927e5d10f 100644 --- a/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.all.e2e.ts @@ -1,16 +1,6 @@ import { Key } from 'webdriverio' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -24,6 +14,9 @@ describe('Test suite: Empty file with setting All (1)', async () => { }) it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - All') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/empty-file.md`), @@ -45,8 +38,6 @@ describe('Test suite: Empty file with setting All (1)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/empty-file.md') - await updateLifecycleIdentitySetting(1) - await reloadWindow() await saveFile(browser) await assertDocumentContainsSpinner(absDocPath, '') }) diff --git a/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts index d826d2908..7eb26f911 100644 --- a/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.cell.e2e.ts @@ -1,16 +1,6 @@ import { Key } from 'webdriverio' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -23,6 +13,9 @@ describe('Test suite: Empty file with setting Cell (3)', async () => { await removeAllNotifications() }) it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Cell') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/empty-file.md`), @@ -44,8 +37,6 @@ describe('Test suite: Empty file with setting Cell (3)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/empty-file.md') - await updateLifecycleIdentitySetting(3) - await reloadWindow() await saveFile(browser) await assertDocumentContainsSpinner(absDocPath, '') }) diff --git a/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts index 3cf89b575..ff1c85421 100644 --- a/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.document.e2e.ts @@ -1,16 +1,6 @@ import { Key } from 'webdriverio' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -24,6 +14,9 @@ describe('Test suite: Empty file with setting Document (2)', async () => { }) it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Doc') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/empty-file.md`), @@ -45,8 +38,6 @@ describe('Test suite: Empty file with setting Document (2)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/empty-file.md') - await updateLifecycleIdentitySetting(2) - await reloadWindow() await saveFile(browser) await assertDocumentContainsSpinner(absDocPath, '') }) diff --git a/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts b/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts index 34fce6ead..f99bfab4a 100644 --- a/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.empty-file.none.e2e.ts @@ -1,16 +1,6 @@ import { Key } from 'webdriverio' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -24,6 +14,9 @@ describe('Test suite: Empty file with setting None (0)', async () => { }) it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - None') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/empty-file.md`), @@ -45,8 +38,6 @@ describe('Test suite: Empty file with setting None (0)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/empty-file.md') - await updateLifecycleIdentitySetting(0) - await reloadWindow() await saveFile(browser) await assertDocumentContainsSpinner(absDocPath, '', true) }) diff --git a/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts index f06f40d88..4f920118e 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.all.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -25,7 +15,11 @@ describe('Test suite: Cell with existent identity and setting All (1)', async () }) const notebook = new RunmeNotebook() + it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - All') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-cell-id.md`), @@ -47,10 +41,8 @@ describe('Test suite: Cell with existent identity and setting All (1)', async () return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-cell-id.md') - await updateLifecycleIdentitySetting(1) - await reloadWindow() - await notebook.focusDocument() const workbench = await browser.getWorkbench() + await notebook.focusDocument() await workbench.executeCommand('Notebook: Focus First Cell') await browser.keys([Key.Enter]) const cell = await notebook.getCell('console.log("Hello via Shebang")') diff --git a/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts index 672b3111b..db05384fb 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.cell.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Cell with existent identity and setting cell only (3)', as const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Cell') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-cell-id.md`), @@ -47,8 +40,6 @@ describe('Test suite: Cell with existent identity and setting cell only (3)', as return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-cell-id.md') - await updateLifecycleIdentitySetting(3) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts index 70b2677ac..790df9c74 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.document.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Cell with existent identity and setting document only (2)' const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Doc') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-cell-id.md`), @@ -47,8 +40,6 @@ describe('Test suite: Cell with existent identity and setting document only (2)' return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-cell-id.md') - await updateLifecycleIdentitySetting(2) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts b/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts index d9eb43eda..8478b76bc 100644 --- a/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-cell.none.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Cell with existent identity and setting None (0)', async ( const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - None') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-cell-id.md`), @@ -47,8 +40,6 @@ describe('Test suite: Cell with existent identity and setting None (0)', async ( return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-cell-id.md') - await updateLifecycleIdentitySetting(0) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts index 2e8667560..fd186b7bc 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.all.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Document with existent identity and setting All (1)', asyn const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - All') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-doc-id.md`), @@ -47,8 +40,6 @@ describe('Test suite: Document with existent identity and setting All (1)', asyn return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-doc-id.md') - await updateLifecycleIdentitySetting(1) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts index 7ddfb0dcc..a4633fa11 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.cell.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Document with existent identity and setting Cell only (3)' const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Cell') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-doc-id.md`), @@ -47,8 +40,6 @@ describe('Test suite: Document with existent identity and setting Cell only (3)' return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-doc-id.md') - await updateLifecycleIdentitySetting(3) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts index 4f76ec556..218106ab9 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.document.e2e.ts @@ -4,20 +4,10 @@ import path from 'node:path' import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateSettings, -} from '../../helpers/index.js' +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' const __dirname = path.dirname(url.fileURLToPath(import.meta.url)) -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} - async function removeAllNotifications() { const workbench = await browser.getWorkbench() const notifications = await workbench.getNotifications() @@ -31,6 +21,9 @@ describe('Test suite: Document with existent identity and setting Document only const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Doc') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-doc-id.md`), @@ -52,8 +45,6 @@ describe('Test suite: Document with existent identity and setting Document only return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-doc-id.md') - await updateSettings({ setting: 'runme.server.lifecycleIdentity', value: 2 }) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts b/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts index 7bbe09931..0ccd72a76 100644 --- a/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.existent-doc.none.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Document with existent identity and setting None (0)', asy const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - None') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/existent-doc-id.md`), @@ -47,8 +40,6 @@ describe('Test suite: Document with existent identity and setting None (0)', asy return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/existent-doc-id.md') - await updateLifecycleIdentitySetting(0) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.shebang.all.e2e.ts b/tests/e2e/specs/identity/identity.shebang.all.e2e.ts index 63b93c0b7..20c78d5a2 100644 --- a/tests/e2e/specs/identity/identity.shebang.all.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.all.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Shebang with setting All (1)', async () => { const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - All') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/shebang.md`), @@ -47,8 +40,6 @@ describe('Test suite: Shebang with setting All (1)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/shebang.md') - await updateLifecycleIdentitySetting(1) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts b/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts index c0358f08d..aec92ef2d 100644 --- a/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.cell.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Shebang with setting Cell only (3)', async () => { const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Cell') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/shebang.md`), @@ -47,8 +40,6 @@ describe('Test suite: Shebang with setting Cell only (3)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/shebang.md') - await updateLifecycleIdentitySetting(3) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.shebang.document.e2e.ts b/tests/e2e/specs/identity/identity.shebang.document.e2e.ts index 26b1f5100..7ff202914 100644 --- a/tests/e2e/specs/identity/identity.shebang.document.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.document.e2e.ts @@ -1,17 +1,7 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' async function removeAllNotifications() { const workbench = await browser.getWorkbench() @@ -26,6 +16,9 @@ describe('Test suite: Shebang with setting Document only (2)', async () => { const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - Doc') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/shebang.md`), @@ -47,8 +40,6 @@ describe('Test suite: Shebang with setting Document only (2)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/shebang.md') - await updateLifecycleIdentitySetting(2) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/specs/identity/identity.shebang.none.e2e.ts b/tests/e2e/specs/identity/identity.shebang.none.e2e.ts index 35ca75d2d..a5e437e40 100644 --- a/tests/e2e/specs/identity/identity.shebang.none.e2e.ts +++ b/tests/e2e/specs/identity/identity.shebang.none.e2e.ts @@ -1,17 +1,8 @@ import { Key } from 'webdriverio' import { RunmeNotebook } from '../../pageobjects/notebook.page.js' -import { - assertDocumentContainsSpinner, - revertChanges, - saveFile, - updateLifecycleIdentitySetting, -} from '../../helpers/index.js' - -async function reloadWindow() { - const workbench = await browser.getWorkbench() - await workbench.executeCommand('Developer: Reload Window') -} +import { assertDocumentContainsSpinner, revertChanges, saveFile } from '../../helpers/index.js' + async function removeAllNotifications() { const workbench = await browser.getWorkbench() const notifications = await workbench.getNotifications() @@ -25,6 +16,9 @@ describe('Test suite: Shebang with setting None (0)', async () => { const notebook = new RunmeNotebook() it('open identity markdown file', async () => { + const workbench = await browser.getWorkbench() + await workbench.executeCommand('Runme: Lifecycle Identity - None') + await browser.executeWorkbench(async (vscode) => { const doc = await vscode.workspace.openTextDocument( vscode.Uri.file(`${vscode.workspace.rootPath}/tests/fixtures/identity/shebang.md`), @@ -46,8 +40,6 @@ describe('Test suite: Shebang with setting None (0)', async () => { return `${vscode.workspace.rootPath}${documentPath}` }, '/tests/fixtures/identity/shebang.md') - await updateLifecycleIdentitySetting(0) - await reloadWindow() await notebook.focusDocument() const workbench = await browser.getWorkbench() await workbench.executeCommand('Notebook: Focus First Cell') diff --git a/tests/e2e/wdio.conf.ts b/tests/e2e/wdio.conf.ts index 11cf4e619..81a71f612 100644 --- a/tests/e2e/wdio.conf.ts +++ b/tests/e2e/wdio.conf.ts @@ -59,8 +59,8 @@ export const config: Options.Testrunner = { // specs: ['./specs/**/*.e2e.ts'], // Patterns to exclude. - exclude: ['./specs/**/identity/*.e2e.ts'], - // exclude: [], + // exclude: ['./specs/**/identity/*.e2e.ts'], + exclude: [], // // ====== // Runner @@ -163,7 +163,7 @@ export const config: Options.Testrunner = { framework: 'mocha', // // The number of times to retry the entire specfile when it fails as a whole - specFileRetries: 2, + specFileRetries: 0, // // Delay in seconds between the spec file retry attempts // specFileRetriesDelay: 0, diff --git a/tests/extension/extension.test.ts b/tests/extension/extension.test.ts index 8c32e409a..06743405b 100644 --- a/tests/extension/extension.test.ts +++ b/tests/extension/extension.test.ts @@ -120,7 +120,7 @@ test('initializes all providers', async () => { await ext.initialize(context) expect(notebooks.registerNotebookCellStatusBarItemProvider).toBeCalledTimes(5) expect(workspace.registerNotebookSerializer).toBeCalledTimes(1) - expect(commands.registerCommand).toBeCalledTimes(42) + expect(commands.registerCommand).toBeCalledTimes(46) expect(window.registerTreeDataProvider).toBeCalledTimes(1) expect(window.registerUriHandler).toBeCalledTimes(1) expect(bootFile).toBeCalledTimes(1) From 18151a7a1b4f6f6af8fb6fc7b7c4bea065ddb2fd Mon Sep 17 00:00:00 2001 From: Cristian Cepeda <43882+pastuxso@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:46:00 -0500 Subject: [PATCH 11/11] Rollback wdio config --- tests/e2e/wdio.conf.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/wdio.conf.ts b/tests/e2e/wdio.conf.ts index 81a71f612..c0476ef54 100644 --- a/tests/e2e/wdio.conf.ts +++ b/tests/e2e/wdio.conf.ts @@ -163,7 +163,7 @@ export const config: Options.Testrunner = { framework: 'mocha', // // The number of times to retry the entire specfile when it fails as a whole - specFileRetries: 0, + specFileRetries: 2, // // Delay in seconds between the spec file retry attempts // specFileRetriesDelay: 0,