Skip to content

Commit dcdde3d

Browse files
jsjoeiojawnsy
andauthored
Update test/e2e/models/CodeServer.ts
Co-authored-by: Jonathan Yu <[email protected]>
1 parent a5926aa commit dcdde3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/models/CodeServer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class CodeServer {
6767

6868
// Slices http://localhost:8080
6969
// to localhost:8080
70-
const hostWithoutHttp = CODE_SERVER_ADDRESS.slice(7)
70+
const hostWithoutHttp = new URL(CODE_SERVER_ADDRESS).host
7171
const hostSelector = `[title="Editing on ${hostWithoutHttp}"]`
7272
await this.page.waitForSelector(hostSelector)
7373

0 commit comments

Comments
 (0)