@@ -5,19 +5,14 @@ import { clean, tmpdir } from "../utils/helpers"
55import { describe , expect , test } from "./baseFixture"
66
77describe ( "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-
138 const testName = "integrated-terminal"
149 test . beforeAll ( async ( ) => {
1510 await clean ( testName )
1611 } )
1712
18- test ( "should echo a string to a file " , async ( { codeServerPage } ) => {
13+ test ( "should have access to VSCODE_PROXY_URI " , async ( { codeServerPage } ) => {
1914 const tmpFolderPath = await tmpdir ( testName )
20- const tmpFile = path . join ( tmpFolderPath , testFileName )
15+ const tmpFile = path . join ( tmpFolderPath , "pipe" )
2116
2217 const command = `mkfifo '${ tmpFile } ' && cat '${ tmpFile } '`
2318 const exec = util . promisify ( cp . exec )
@@ -27,12 +22,12 @@ describe("Integrated Terminal", true, () => {
2722 await codeServerPage . focusTerminal ( )
2823
2924 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 } ` )
3126 await codeServerPage . page . keyboard . press ( "Enter" )
3227 // It may take a second to process
3328 await codeServerPage . page . waitForTimeout ( 1000 )
3429
3530 const { stdout } = await output
36- expect ( stdout ) . toMatch ( testString )
31+ expect ( stdout ) . toMatch ( await codeServerPage . address ( ) )
3732 } )
3833} )
0 commit comments