mirror of
https://github.com/coder/code-server.git
synced 2024-12-05 07:13:06 +08:00
3d999986b2
* Add test extension This will let us test extension-related features (like the proxy URI). I removed the environment variables in the script because they override the ones you set yourself. We still set defaults in constants.ts. * Add changelog entry for VSCODE_PROXY_URI * Add terminal test for VSCODE_PROXY_URI * Update VS Code This adds the VSCODE_PROXY_URI environment variable.
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import { PlaywrightTestConfig } from "@playwright/test"
|
|
|
|
import path from "path"
|
|
|
|
// The default configuration runs all tests in three browsers with workers equal
|
|
// to half the available threads. See 'yarn test:e2e --help' to customize from
|
|
// the command line. For example:
|
|
// yarn test:e2e --workers 1 # Run with one worker
|
|
// yarn test:e2e --project Chromium # Only run on Chromium
|
|
// yarn test:e2e --grep login # Run tests matching "login"
|
|
const config: PlaywrightTestConfig = {
|
|
testDir: path.join(__dirname, "e2e"), // Search for tests in this directory.
|
|
timeout: 60000, // Each test is given 60 seconds.
|
|
retries: process.env.CI ? 2 : 1, // Retry in CI due to flakiness.
|
|
globalSetup: require.resolve("./utils/globalE2eSetup.ts"),
|
|
reporter: "list",
|
|
// Put any shared options on the top level.
|
|
use: {
|
|
headless: true, // Run tests in headless browsers.
|
|
video: "retain-on-failure",
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: "Chromium",
|
|
use: { browserName: "chromium" },
|
|
},
|
|
{
|
|
name: "Firefox",
|
|
use: { browserName: "firefox" },
|
|
},
|
|
{
|
|
name: "WebKit",
|
|
use: { browserName: "webkit" },
|
|
},
|
|
],
|
|
}
|
|
|
|
export default config
|