mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
* feat: Add tunnel by default If an access URL is not specified, we will always tunnel. This is from community-member feedback who exclaimed that it's confusing having the default for `coder server` display a warning message, and I agree. There is very little (maybe none) in running `coder server` without tunnel and without an access URL, so this seems like overall a much better UX. * Update install.sh Co-authored-by: Ben Potter <ben@coder.com> * Update docs/install/packages.md Co-authored-by: Ben Potter <ben@coder.com> * Fix reset pass test * Fix e2e test Co-authored-by: Ben Potter <ben@coder.com>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { PlaywrightTestConfig } from "@playwright/test"
|
|
import * as path from "path"
|
|
import { basePort } from "./constants"
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
testDir: "tests",
|
|
globalSetup: require.resolve("./globalSetup"),
|
|
|
|
// Create junit report file for upload to DataDog
|
|
reporter: [["junit", { outputFile: "test-results/junit.xml" }]],
|
|
|
|
// NOTE: if Playwright complains about the port being taken
|
|
// do not change the basePort (it must match our api server).
|
|
// Instead, simply run the test suite without running our local server.
|
|
use: {
|
|
baseURL: `http://localhost:${basePort}`,
|
|
video: "retain-on-failure",
|
|
},
|
|
|
|
// `webServer` tells Playwright to launch a test server - more details here:
|
|
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
|
|
webServer: {
|
|
// Run the coder daemon directly.
|
|
command: `go run -tags embed ${path.join(
|
|
__dirname,
|
|
"../../enterprise/cmd/coder/main.go",
|
|
)} server --in-memory --access-url 127.0.0.1:${basePort}`,
|
|
port: basePort,
|
|
timeout: 120 * 10000,
|
|
reuseExistingServer: false,
|
|
},
|
|
}
|
|
|
|
export default config
|