Skip to content

Commit 05c460f

Browse files
committed
feat: add e2e test for codeServer object
1 parent 2686d88 commit 05c460f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/e2e/workbench.test.ts renamed to test/e2e/codeServer.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect } from "@playwright/test"
22
import { STORAGE } from "../utils/constants"
33
import { CodeServer } from "./models/CodeServer"
44

5-
test.describe("Workbench", () => {
5+
test.describe("CodeServer", () => {
66
// Create a new context with the saved storage state
77
// so we don't have to logged in
88
const options: any = {}
@@ -30,4 +30,9 @@ test.describe("Workbench", () => {
3030
// which is the default folder that opens
3131
expect(await page.isVisible("text=workspaceStorage")).toBe(true)
3232
})
33+
34+
test("should show the Integrated Terminal", options, async ({ page }) => {
35+
await codeServer.viewTerminal()
36+
expect(await page.isVisible("#terminal")).toBe(true)
37+
})
3338
})

0 commit comments

Comments
 (0)