diff --git a/test/e2e/downloads.test.ts b/test/e2e/downloads.test.ts index 401cc4227..1b24b62fd 100644 --- a/test/e2e/downloads.test.ts +++ b/test/e2e/downloads.test.ts @@ -14,6 +14,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => { const workspaceDir = await codeServerPage.workspaceDir const tmpFilePath = path.join(workspaceDir, "unique-file.txt") await fs.writeFile(tmpFilePath, "hello world") + await codeServerPage.executeCommandViaMenus("Refresh Explorer") // Action const fileInExplorer = await codeServerPage.page.waitForSelector("text=unique-file.txt") @@ -30,6 +31,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => { const fileName = "unique-file-save-as.txt" const tmpFilePath = path.join(workspaceDir, fileName) await fs.writeFile(tmpFilePath, "Hello World") + await codeServerPage.executeCommandViaMenus("Refresh Explorer") // Action await codeServerPage.page.waitForSelector(`text=${fileName}`) @@ -71,6 +73,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d const workspaceDir = await codeServerPage.workspaceDir const tmpFilePath = path.join(workspaceDir, "unique-file.txt") await fs.writeFile(tmpFilePath, "Hello World") + await codeServerPage.executeCommandViaMenus("Refresh Explorer") // Action const fileInExplorer = await codeServerPage.page.waitForSelector("text=unique-file.txt") @@ -87,6 +90,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d const fileName = "unique-file-save-as.txt" const tmpFilePath = path.join(workspaceDir, fileName) await fs.writeFile(tmpFilePath, "Hello World") + await codeServerPage.executeCommandViaMenus("Refresh Explorer") // Action await codeServerPage.page.waitForSelector(`text=${fileName}`) diff --git a/test/e2e/uploads.test.ts b/test/e2e/uploads.test.ts index 55ebea947..8fa1799f0 100644 --- a/test/e2e/uploads.test.ts +++ b/test/e2e/uploads.test.ts @@ -14,6 +14,7 @@ describe("Uploads (enabled)", ["--disable-workspace-trust"], {}, () => { const workspaceDir = await codeServerPage.workspaceDir const tmpDirPath = path.join(workspaceDir, "test-directory") await fs.mkdir(tmpDirPath) + await codeServerPage.executeCommandViaMenus("Refresh Explorer") // Action const fileInExplorer = await codeServerPage.page.waitForSelector('span:has-text("test-directory")') @@ -42,6 +43,7 @@ describe("Uploads (disabled)", ["--disable-workspace-trust", "--disable-file-upl const workspaceDir = await codeServerPage.workspaceDir const tmpDirPath = path.join(workspaceDir, "test-directory") await fs.mkdir(tmpDirPath) + await codeServerPage.executeCommandViaMenus("Refresh Explorer") // Action const fileInExplorer = await codeServerPage.page.waitForSelector('span:has-text("test-directory")')