mirror of
https://github.com/danog/code-server.git
synced 2024-12-02 09:38:32 +01:00
f178f0400b
* docs: update maintaining * chore(e2e): add maxFailures to playwright * fix(ci): skip submodule in e2e job We don't need the submodules for the e2e job. This will speed up the checkout step. * feat(ci): add test-e2e-proxy job This adds a new job to CI to run our tests behind Caddy and simulate code-server running against a reverse-proxy. * refactor: make e2e work with reverse proxy This refactors the e2e test in a couple ways: - remove setting cookie in localStorage (instead we pass --auth none) - refactor address() method to account for reverse proxy logic * Update test/e2e/models/CodeServer.ts * Update test/playwright.config.ts * Update test/utils/constants.ts Co-authored-by: Asher <ash@coder.com> * Update test/utils/helpers.ts Co-authored-by: Asher <ash@coder.com> Co-authored-by: Asher <ash@coder.com>
22 lines
586 B
TypeScript
22 lines
586 B
TypeScript
import { workspaceDir } from "./constants"
|
|
import { clean } from "./helpers"
|
|
import * as wtfnode from "./wtfnode"
|
|
|
|
/**
|
|
* Perform workspace cleanup and authenticate. This should be ran before e2e
|
|
* tests execute.
|
|
*/
|
|
export default async function () {
|
|
console.log("\n🚨 Running Global Setup for Playwright End-to-End Tests")
|
|
console.log(" Please hang tight...")
|
|
|
|
// Cleanup workspaces from previous tests.
|
|
await clean(workspaceDir)
|
|
|
|
if (process.env.WTF_NODE) {
|
|
wtfnode.setup()
|
|
}
|
|
|
|
console.log("✅ Global Setup for Playwright End-to-End Tests is now complete.")
|
|
}
|