Skip to content

Commit 02fd70d

Browse files
committed
wip: add broken test
1 parent 7c06d63 commit 02fd70d

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

test/e2e/baseFixture.ts

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export const describe = (name: string, includeCredentials: boolean, codeServerAr
3636
authenticated: includeCredentials,
3737
// This provides a cookie that authenticates with code-server.
3838
storageState: includeCredentials ? storageState : {},
39+
// TODO@jsjoeio add note why we do this for testing cert stuff
40+
ignoreHTTPSErrors: true
3941
})
4042

4143
fn(codeServer)

test/e2e/extensions.test.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, test } from "./baseFixture"
22

3-
describe("Extensions", true, [], () => {
3+
function testBasicExtension() {
44
// This will only work if the test extension is loaded into code-server.
55
test("should have access to VSCODE_PROXY_URI", async ({ codeServerPage }) => {
66
const address = await codeServerPage.address()
@@ -9,4 +9,12 @@ describe("Extensions", true, [], () => {
99

1010
await codeServerPage.page.waitForSelector(`text=${address}/proxy/{port}`)
1111
})
12+
}
13+
14+
describe("Extensions", true, [], () => {
15+
testBasicExtension()
1216
})
17+
18+
describe("Extensions with --cert", true, ["--cert"], () => {
19+
testBasicExtension()
20+
})

test/e2e/models/CodeServer.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export class CodeServer {
7777
const proc = cp.spawn(
7878
"node",
7979
[
80-
...this.codeServerArgs,
8180
process.env.CODE_SERVER_TEST_ENTRY || ".",
81+
...this.codeServerArgs,
8282
// Using port zero will spawn on a random port.
8383
"--bind-addr",
8484
"127.0.0.1:0",
@@ -113,6 +113,7 @@ export class CodeServer {
113113

114114
proc.on("close", (code) => {
115115
const error = new Error("closed unexpectedly")
116+
console.log(code, "there is a code")
116117
if (!this.closed) {
117118
this.logger.error(error.message, field("code", code))
118119
}

0 commit comments

Comments
 (0)