Skip to content

Commit d4e5738

Browse files
committed
wip
1 parent c223154 commit d4e5738

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

test/e2e/codeServer.test.ts

+21-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@ test.describe("CodeServer", () => {
2323
await codeServer.navigate()
2424
})
2525

26+
test.only("should create and delete a temp folder for testing", options, async ({ page }) => {
27+
// open default folder
28+
await codeServer.openFolder()
29+
30+
// find workspaceStorage in the Explorer menu, which would be open in the User folder
31+
// which is the default folder that opens
32+
expect(await page.isVisible("text=workspaceStorage")).toBe(true)
33+
// create temp folder
34+
35+
await codeServer.createTempFolder()
36+
37+
// Make sure it exists
38+
expect(await page.isVisible("text=e2e_test_temp_folder")).toBe(true)
39+
40+
await codeServer.deleteTempFolder()
41+
42+
// Make sure it was deleted
43+
expect(await page.isVisible("text=e2e_test_temp_folder")).toBe(false)
44+
})
45+
2646
test("should open the default folder if not open", options, async ({ page }) => {
2747
await codeServer.openFolder()
2848

@@ -41,6 +61,6 @@ test.describe("CodeServer", () => {
4161
await codeServer.quickOpen("extensions.json")
4262
// If the file is open, we will see an empty array
4363
// assuming no extensions are installed
44-
expect(await page.isVisible("text=[]"))
64+
expect(await page.isVisible("text=[]")).toBe(true)
4565
})
4666
})

0 commit comments

Comments
 (0)