Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ada170

Browse files
authoredApr 4, 2022
Use playwright for desktop smoke tests (microsoft#146692)
* Use `playwright` for desktop smoke tests * fix distro issues * tests - enable prefs tests for web
1 parent 0bc0953 commit 2ada170

File tree

34 files changed

+592
-478
lines changed

34 files changed

+592
-478
lines changed
 

‎build/azure-pipelines/darwin/product-build-darwin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ steps:
236236
- script: |
237237
set -e
238238
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-darwin-$(VSCODE_ARCH)" \
239-
yarn smoketest-no-compile --web --headless
239+
yarn smoketest-no-compile --web --tracing --headless
240240
timeoutInMinutes: 10
241241
displayName: Run smoke tests (Browser, Chromium)
242242
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
@@ -245,7 +245,7 @@ steps:
245245
set -e
246246
APP_ROOT=$(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)
247247
APP_NAME="`ls $APP_ROOT | head -n 1`"
248-
yarn smoketest-no-compile --build "$APP_ROOT/$APP_NAME"
248+
yarn smoketest-no-compile --tracing --build "$APP_ROOT/$APP_NAME"
249249
# Increased timeout because this test downloads stable code
250250
timeoutInMinutes: 20
251251
displayName: Run smoke tests (Electron)
@@ -256,7 +256,7 @@ steps:
256256
APP_ROOT=$(agent.builddirectory)/VSCode-darwin-$(VSCODE_ARCH)
257257
APP_NAME="`ls $APP_ROOT | head -n 1`"
258258
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-darwin-$(VSCODE_ARCH)" \
259-
yarn smoketest-no-compile --build "$APP_ROOT/$APP_NAME" --remote
259+
yarn smoketest-no-compile --tracing --remote --build "$APP_ROOT/$APP_NAME"
260260
timeoutInMinutes: 10
261261
displayName: Run smoke tests (Remote)
262262
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))

‎build/azure-pipelines/linux/product-build-linux-client.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,15 @@ steps:
259259
- script: |
260260
set -e
261261
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-web-linux-$(VSCODE_ARCH)" \
262-
yarn smoketest-no-compile --web --headless --electronArgs="--disable-dev-shm-usage"
262+
yarn smoketest-no-compile --web --tracing --headless --electronArgs="--disable-dev-shm-usage"
263263
timeoutInMinutes: 10
264264
displayName: Run smoke tests (Browser, Chromium)
265265
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
266266
267267
- script: |
268268
set -e
269269
APP_PATH=$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)
270-
yarn smoketest-no-compile --build "$APP_PATH" --electronArgs="--disable-dev-shm-usage"
270+
yarn smoketest-no-compile --tracing --build "$APP_PATH"
271271
# Increased timeout because this test downloads stable code
272272
timeoutInMinutes: 20
273273
displayName: Run smoke tests (Electron)
@@ -277,7 +277,7 @@ steps:
277277
set -e
278278
APP_PATH=$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)
279279
VSCODE_REMOTE_SERVER_PATH="$(agent.builddirectory)/vscode-reh-linux-$(VSCODE_ARCH)" \
280-
yarn smoketest-no-compile --build "$APP_PATH" --remote --electronArgs="--disable-dev-shm-usage"
280+
yarn smoketest-no-compile --tracing --remote --build "$APP_PATH"
281281
timeoutInMinutes: 10
282282
displayName: Run smoke tests (Remote)
283283
condition: and(succeeded(), eq(variables['VSCODE_ARCH'], 'x64'), eq(variables['VSCODE_STEP_ON_IT'], 'false'))

‎build/azure-pipelines/win32/product-build-win32.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ steps:
220220
. build/azure-pipelines/win32/exec.ps1
221221
$ErrorActionPreference = "Stop"
222222
$env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-web-win32-$(VSCODE_ARCH)"
223-
exec { yarn smoketest-no-compile --web --headless }
223+
exec { yarn smoketest-no-compile --web --tracing --headless }
224224
displayName: Run smoke tests (Browser, Chromium)
225225
timeoutInMinutes: 10
226226
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'), ne(variables['VSCODE_ARCH'], 'arm64'))
@@ -229,7 +229,7 @@ steps:
229229
. build/azure-pipelines/win32/exec.ps1
230230
$ErrorActionPreference = "Stop"
231231
$AppRoot = "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)"
232-
exec { yarn smoketest-no-compile --build "$AppRoot" }
232+
exec { yarn smoketest-no-compile --tracing --build "$AppRoot" }
233233
displayName: Run smoke tests (Electron)
234234
# Increased timeout because this test downloads stable code
235235
timeoutInMinutes: 20
@@ -240,7 +240,7 @@ steps:
240240
$ErrorActionPreference = "Stop"
241241
$AppRoot = "$(agent.builddirectory)\VSCode-win32-$(VSCODE_ARCH)"
242242
$env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-win32-$(VSCODE_ARCH)"
243-
exec { yarn smoketest-no-compile --build "$AppRoot" --remote }
243+
exec { yarn smoketest-no-compile --tracing --remote --build "$AppRoot" }
244244
displayName: Run smoke tests (Remote)
245245
timeoutInMinutes: 10
246246
condition: and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'), ne(variables['VSCODE_ARCH'], 'arm64'))

‎src/vs/code/electron-main/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export class CodeApplication extends Disposable {
524524

525525
// Create driver
526526
if (this.environmentMainService.driverHandle) {
527-
const server = await serveDriver(mainProcessElectronServer, this.environmentMainService.driverHandle, this.environmentMainService, appInstantiationService);
527+
const server = await serveDriver(mainProcessElectronServer, this.environmentMainService.driverHandle, appInstantiationService);
528528

529529
this.logService.info('Driver started at:', this.environmentMainService.driverHandle);
530530
this._register(server);

‎src/vs/platform/driver/browser/baseDriver.ts

Lines changed: 0 additions & 205 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.