Skip to content

Commit 8b38ba4

Browse files
committed
fix: update e2e to test login page
1 parent 1ab2d04 commit 8b38ba4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,6 @@ jobs:
166166
- uses: microsoft/playwright-github-action@v1
167167
- name: Install dependencies and run tests
168168
run: |
169-
node code-server-* &
169+
node code-server*-linux-amd64 &
170170
yarn test
171171
pkill node

test/e2e.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ afterEach(async () => {
1616
})
1717

1818
it("should work", async () => {
19-
await page.goto("https://www.example.com/")
20-
expect(await page.title()).toBe("Example Domain")
19+
await page.goto("http://localhost:8080")
20+
// It should send us to the login page
21+
expect(await page.title()).toBe("code-server login")
2122
})

0 commit comments

Comments
 (0)