@@ -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