@@ -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" )
@@ -30,6 +31,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
3031 const fileName = "unique-file-save-as.txt"
3132 const tmpFilePath = path . join ( workspaceDir , fileName )
3233 await fs . writeFile ( tmpFilePath , "Hello World" )
34+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
3335
3436 // Action
3537 await codeServerPage . page . waitForSelector ( `text=${ fileName } ` )
@@ -71,6 +73,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
7173 const workspaceDir = await codeServerPage . workspaceDir
7274 const tmpFilePath = path . join ( workspaceDir , "unique-file.txt" )
7375 await fs . writeFile ( tmpFilePath , "Hello World" )
76+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
7477
7578 // Action
7679 const fileInExplorer = await codeServerPage . page . waitForSelector ( "text=unique-file.txt" )
@@ -87,6 +90,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
8790 const fileName = "unique-file-save-as.txt"
8891 const tmpFilePath = path . join ( workspaceDir , fileName )
8992 await fs . writeFile ( tmpFilePath , "Hello World" )
93+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
9094
9195 // Action
9296 await codeServerPage . page . waitForSelector ( `text=${ fileName } ` )
0 commit comments