mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 12:05:18 +02:00
feat: update workflow
This commit is contained in:
@@ -2,6 +2,7 @@ import { chromium, Page, Browser } from "playwright"
|
||||
|
||||
let browser: Browser
|
||||
let page: Page
|
||||
|
||||
beforeAll(async () => {
|
||||
browser = await chromium.launch()
|
||||
})
|
||||
@@ -15,7 +16,8 @@ afterEach(async () => {
|
||||
await page.close()
|
||||
})
|
||||
|
||||
it("should work", async () => {
|
||||
await page.goto("https://www.example.com/")
|
||||
expect(await page.title()).toBe("Example Domain")
|
||||
it("should see the login page", async () => {
|
||||
await page.goto("http://localhost:8080")
|
||||
// It should send us to the login page
|
||||
expect(await page.title()).toBe("code-server login")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user