@@ -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" )
@@ -30,6 +31,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
30
31
const fileName = "unique-file-save-as.txt"
31
32
const tmpFilePath = path . join ( workspaceDir , fileName )
32
33
await fs . writeFile ( tmpFilePath , "Hello World" )
34
+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
33
35
34
36
// Action
35
37
await codeServerPage . page . waitForSelector ( `text=${ fileName } ` )
@@ -71,6 +73,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
71
73
const workspaceDir = await codeServerPage . workspaceDir
72
74
const tmpFilePath = path . join ( workspaceDir , "unique-file.txt" )
73
75
await fs . writeFile ( tmpFilePath , "Hello World" )
76
+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
74
77
75
78
// Action
76
79
const fileInExplorer = await codeServerPage . page . waitForSelector ( "text=unique-file.txt" )
@@ -87,6 +90,7 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
87
90
const fileName = "unique-file-save-as.txt"
88
91
const tmpFilePath = path . join ( workspaceDir , fileName )
89
92
await fs . writeFile ( tmpFilePath , "Hello World" )
93
+ await codeServerPage . executeCommandViaMenus ( "Refresh Explorer" )
90
94
91
95
// Action
92
96
await codeServerPage . page . waitForSelector ( `text=${ fileName } ` )
0 commit comments