@@ -14,6 +14,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
14
14
const workspaceDir = await codeServerPage . workspaceDir
15
15
const tmpFilePath = path . join ( workspaceDir , "unique-file.txt" )
16
16
await fs . writeFile ( tmpFilePath , "hello world" )
17
+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
17
18
18
19
// Action
19
20
const fileInExplorer = await codeServerPage . page . waitForSelector ( "text=unique-file.txt" )
@@ -71,6 +72,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
71
72
const workspaceDir = await codeServerPage . workspaceDir
72
73
const tmpFilePath = path . join ( workspaceDir , "unique-file.txt" )
73
74
await fs . writeFile ( tmpFilePath , "Hello World" )
75
+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
74
76
75
77
// Action
76
78
const fileInExplorer = await codeServerPage . page . waitForSelector ( "text=unique-file.txt" )
@@ -87,6 +89,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
87
89
const fileName = "unique-file-save-as.txt"
88
90
const tmpFilePath = path . join ( workspaceDir , fileName )
89
91
await fs . writeFile ( tmpFilePath , "Hello World" )
92
+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
90
93
91
94
// Action
92
95
await codeServerPage . page . waitForSelector ( `text=${ fileName } ` )
0 commit comments