Skip to content

Commit c7f204a

Browse files
committed
test: add run with latest wdio pattern
1 parent 4b33091 commit c7f204a

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

e2e/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"test:smoke:config": "cross-env VSCODE_WDIO_E2E_SCENARIO=config xvfb-maybe wdio run ./wdioSmoke.conf.ts",
2121
"test:smoke:timeout": "cross-env VSCODE_WDIO_E2E_SCENARIO=timeout xvfb-maybe wdio run ./wdioSmoke.conf.ts",
2222
"test:smoke:retro-wdio-win": "run-s test:smoke:retro-wdio-win:*",
23+
"test:smoke:retro-wdio-win:run-latest": "cross-env VSCODE_WDIO_E2E_SCENARIO=mocha VSCODE_WDIO_SMOKE_RETRO_WIN=no xvfb-maybe pnpm run wdio",
2324
"test:smoke:retro-wdio-win:prepare": "tsx ./scripts/retro-wdio-win.ts",
2425
"test:smoke:retro-wdio-win:run": "cross-env VSCODE_WDIO_E2E_SCENARIO=mocha VSCODE_WDIO_SMOKE_RETRO_WIN=yes xvfb-maybe pnpm run wdio",
2526
"test:smoke:retro-wdio-win:cleanup": "git checkout ../samples/e2e/mocha/package.json ../pnpm-lock.yaml && pnpm --filter @vscode-wdio/e2e-mocha install",

e2e/tests/basic.spec.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,17 @@ describe(`VS Code Extension Testing with ${targetFramework}`, function () {
8787
})
8888

8989
// eslint-disable-next-line mocha/no-setup-in-describe
90-
if (process.env.VSCODE_WDIO_SMOKE_RETRO_WIN) {
90+
if (process.env.VSCODE_WDIO_SMOKE_RETRO_WIN === 'yes') {
9191

9292
it('should use temporally configuration file', async function () {
9393
await expect(workbench).hasExpectedLog('Use temporary configuration files @wdio/[email protected] < 9.16.0')
9494
})
95+
96+
// eslint-disable-next-line mocha/no-setup-in-describe
97+
} else if (process.env.VSCODE_WDIO_SMOKE_RETRO_WIN === 'no') {
98+
99+
it('should not use temporally configuration file', async function () {
100+
await expect(workbench).not.hasExpectedLog('Use temporary configuration files @wdio/[email protected] < 9.16.0')
101+
})
95102
}
96103
})

e2e/wdio.conf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const version = isCompatibilityMode ? minimumVersion : 'stable'
2020
const outputDir = path.join(__dirname, 'logs', [isCompatibilityMode ? 'compatibility' : 'e2e', target].join('-'))
2121
process.env.VSCODE_WDIO_TRACE_LOG_PATH = outputDir
2222

23-
const loglevel = process.env.VSCODE_WDIO_SMOKE_RETRO_WIN === 'yes' ? 'debug' : 'trace'
23+
const loglevel = process.env.VSCODE_WDIO_SMOKE_RETRO_WIN ? 'debug' : 'trace'
2424

2525
function defineSpecs(target: TestTargets) {
2626
switch (target) {

0 commit comments

Comments
 (0)