1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2025-01-02 15:28:45 +00:00

Standardize on endpoint vs path

This commit is contained in:
Asher 2022-02-18 21:03:25 +00:00
parent 2dad878fcc
commit ee850b5bca

View File

@ -205,8 +205,8 @@ export class CodeServerPage {
/**
* Navigate to a code-server endpoint. By default go to the root.
*/
async navigate(path = "/") {
const to = new URL(path, await this.codeServer.address())
async navigate(endpoint = "/") {
const to = new URL(endpoint, await this.codeServer.address())
await this.page.goto(to.toString(), { waitUntil: "networkidle" })
}