mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 22:46:48 -05:00
Use playwright for desktop smoke tests (#146692)
* Use `playwright` for desktop smoke tests * fix distro issues * tests - enable prefs tests for web
This commit is contained in:
@@ -125,7 +125,7 @@ async function launchServer(browserType: BrowserType): Promise<{ endpoint: url.U
|
||||
const root = path.join(__dirname, '..', '..', '..', '..');
|
||||
const logsPath = path.join(root, '.build', 'logs', 'integration-tests-browser');
|
||||
|
||||
const serverArgs = ['--driver', 'web', '--enable-proposed-api', '--disable-telemetry', '--server-data-dir', userDataDir, '--accept-server-license-terms', '--disable-workspace-trust'];
|
||||
const serverArgs = ['--enable-proposed-api', '--disable-telemetry', '--server-data-dir', userDataDir, '--accept-server-license-terms', '--disable-workspace-trust'];
|
||||
|
||||
let serverLocation: string;
|
||||
if (process.env.VSCODE_REMOTE_SERVER_PATH) {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
//@ts-check
|
||||
'use strict';
|
||||
|
||||
const paths = require('path');
|
||||
@@ -10,7 +11,9 @@ const glob = require('glob');
|
||||
// Linux: prevent a weird NPE when mocha on Linux requires the window size from the TTY
|
||||
// Since we are not running in a tty environment, we just implementt he method statically
|
||||
const tty = require('tty');
|
||||
// @ts-ignore
|
||||
if (!tty.getWindowSize) {
|
||||
// @ts-ignore
|
||||
tty.getWindowSize = function () { return [80, 75]; };
|
||||
}
|
||||
const Mocha = require('mocha');
|
||||
|
||||
Reference in New Issue
Block a user