mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
Gate wtfnode behind WTF_NODE env var
After thinking about it some more it's probably mostly only useful to see the output when the tests are hanging. Otherwise there's a lot of noise about Jest child processes and pipes.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { chromium, Page, Browser } from "playwright"
|
||||
import { CODE_SERVER_ADDRESS } from "./constants"
|
||||
|
||||
let browser: Browser
|
||||
let page: Page
|
||||
@@ -17,7 +18,7 @@ afterEach(async () => {
|
||||
})
|
||||
|
||||
it("should see the login page", async () => {
|
||||
await page.goto(process.env)
|
||||
await page.goto(CODE_SERVER_ADDRESS)
|
||||
// It should send us to the login page
|
||||
expect(await page.title()).toBe("code-server login")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user