mirror of
https://git.tuxpa.in/a/code-server.git
synced 2025-01-05 00:28:46 +00:00
Standardize on endpoint vs path
This commit is contained in:
parent
2dad878fcc
commit
ee850b5bca
@ -205,8 +205,8 @@ export class CodeServerPage {
|
|||||||
/**
|
/**
|
||||||
* Navigate to a code-server endpoint. By default go to the root.
|
* Navigate to a code-server endpoint. By default go to the root.
|
||||||
*/
|
*/
|
||||||
async navigate(path = "/") {
|
async navigate(endpoint = "/") {
|
||||||
const to = new URL(path, await this.codeServer.address())
|
const to = new URL(endpoint, await this.codeServer.address())
|
||||||
await this.page.goto(to.toString(), { waitUntil: "networkidle" })
|
await this.page.goto(to.toString(), { waitUntil: "networkidle" })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user