mirror of
https://github.com/danog/code-server.git
synced 2024-11-26 20:34:56 +01:00
0e78a147b6
* feat: github-auth flag This will allow injecting credentials into code-server if you already have them. * Update Code Contains the GitHub auth changes. * Add e2e test for GitHub token
24 lines
743 B
TypeScript
24 lines
743 B
TypeScript
import * as path from "path"
|
|
import { describe, test } from "./baseFixture"
|
|
|
|
function runTestExtensionTests() {
|
|
// This will only work if the test extension is loaded into code-server.
|
|
test("should have access to VSCODE_PROXY_URI", async ({ codeServerPage }) => {
|
|
const address = await codeServerPage.address()
|
|
|
|
await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI")
|
|
|
|
await codeServerPage.page.waitForSelector(`text=${address}/proxy/{{port}}`)
|
|
})
|
|
}
|
|
|
|
const flags = ["--extensions-dir", path.join(__dirname, "./extensions")]
|
|
|
|
describe("Extensions", true, flags, {}, () => {
|
|
runTestExtensionTests()
|
|
})
|
|
|
|
describe("Extensions with --cert", true, [...flags, "--cert"], {}, () => {
|
|
runTestExtensionTests()
|
|
})
|