Skip to content

Commit 1efd9bd

Browse files
committed
Refresh explorer after creating file
The watcher seems to not be catching this...unsure if it is a bug yet.
1 parent abe1584 commit 1efd9bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/e2e/downloads.test.ts

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
1414
const workspaceDir = await codeServerPage.workspaceDir
1515
const tmpFilePath = path.join(workspaceDir, "unique-file.txt")
1616
await fs.writeFile(tmpFilePath, "hello world")
17+
await codeServerPage.executeCommandViaMenus("Refresh Explorer")
1718

1819
// Action
1920
const fileInExplorer = await codeServerPage.page.waitForSelector("text=unique-file.txt")
@@ -71,6 +72,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
7172
const workspaceDir = await codeServerPage.workspaceDir
7273
const tmpFilePath = path.join(workspaceDir, "unique-file.txt")
7374
await fs.writeFile(tmpFilePath, "Hello World")
75+
await codeServerPage.executeCommandViaMenus("Refresh Explorer")
7476

7577
// Action
7678
const fileInExplorer = await codeServerPage.page.waitForSelector("text=unique-file.txt")
@@ -87,6 +89,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
8789
const fileName = "unique-file-save-as.txt"
8890
const tmpFilePath = path.join(workspaceDir, fileName)
8991
await fs.writeFile(tmpFilePath, "Hello World")
92+
await codeServerPage.executeCommandViaMenus("Refresh Explorer")
9093

9194
// Action
9295
await codeServerPage.page.waitForSelector(`text=${fileName}`)

0 commit comments

Comments
 (0)