diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cecbfb39c..98fd74d74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - run: npx playwright install chromium - run: npm run lint - run: npm run build - - run: npm run test -- --project=cli --project=cli-reuse --workers=1 + - run: npm run test --workers=1 - run: npx vsce package if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20' - uses: actions/upload-artifact@v3 diff --git a/package.json b/package.json index 639866a20..3f54f1458 100644 --- a/package.json +++ b/package.json @@ -111,7 +111,8 @@ "l10n": "npx @vscode/l10n-dev export -o ./l10n ./src", "vscode:prepublish": "npm run build", "lint": "tsc && eslint . --ext .ts,.tsx,.js", - "test": "playwright test", + "test": "playwright test --project=cli --project=cli-reuse", + "test-all": "playwright test", "package": "vsce package", "code": "code --uninstall-extension ms-playwright.playwright && code --install-extension playwright-0.2.11.vsix", "uncode": "code --uninstall-extension ms-playwright.playwright", diff --git a/src/playwrightTest.ts b/src/playwrightTest.ts index b7c641987..c3e22ee92 100644 --- a/src/playwrightTest.ts +++ b/src/playwrightTest.ts @@ -187,7 +187,7 @@ export class PlaywrightTest { } private _useTestServer(config: TestConfig) { - return config.version >= 1.43 || this._settingsModel.useTestServer.get(); + return this._settingsModel.useTestServer.get(); } private async _test(config: TestConfig, locations: string[], mode: 'list' | 'run', options: PlaywrightTestOptions, listener: TestListener, token: vscodeTypes.CancellationToken): Promise {