@@ -5,19 +5,14 @@ import { clean, tmpdir } from "../utils/helpers"
5
5
import { describe , expect , test } from "./baseFixture"
6
6
7
7
describe ( "Integrated Terminal" , true , ( ) => {
8
- // Create a new context with the saved storage state
9
- // so we don't have to logged in
10
- const testFileName = "pipe"
11
- const testString = "new string test from e2e test"
12
-
13
8
const testName = "integrated-terminal"
14
9
test . beforeAll ( async ( ) => {
15
10
await clean ( testName )
16
11
} )
17
12
18
- test ( "should echo a string to a file " , async ( { codeServerPage } ) => {
13
+ test ( "should have access to VSCODE_PROXY_URI " , async ( { codeServerPage } ) => {
19
14
const tmpFolderPath = await tmpdir ( testName )
20
- const tmpFile = path . join ( tmpFolderPath , testFileName )
15
+ const tmpFile = path . join ( tmpFolderPath , "pipe" )
21
16
22
17
const command = `mkfifo '${ tmpFile } ' && cat '${ tmpFile } '`
23
18
const exec = util . promisify ( cp . exec )
@@ -27,12 +22,12 @@ describe("Integrated Terminal", true, () => {
27
22
await codeServerPage . focusTerminal ( )
28
23
29
24
await codeServerPage . page . waitForLoadState ( "load" )
30
- await codeServerPage . page . keyboard . type ( `echo ${ testString } > ${ tmpFile } ` )
25
+ await codeServerPage . page . keyboard . type ( `printenv VSCODE_PROXY_URI > ${ tmpFile } ` )
31
26
await codeServerPage . page . keyboard . press ( "Enter" )
32
27
// It may take a second to process
33
28
await codeServerPage . page . waitForTimeout ( 1000 )
34
29
35
30
const { stdout } = await output
36
- expect ( stdout ) . toMatch ( testString )
31
+ expect ( stdout ) . toMatch ( await codeServerPage . address ( ) )
37
32
} )
38
33
} )
0 commit comments