feat: update workflow

This commit is contained in:
Joe Previte
2021-01-27 16:04:37 -07:00
parent 66fe663e33
commit 6685a3e364
8 changed files with 148 additions and 151 deletions

View File

@@ -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")
})