Skip to content

Commit 4203c02

Browse files
committed
Reformat code and update navigateMenu call
1 parent bee0fe0 commit 4203c02

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

src/node/cli.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ export const options: Options<Required<UserProvidedArgs>> = {
173173
},
174174
"disable-file-uploads": {
175175
type: "boolean",
176-
description:
177-
"Disable file uploads.",
176+
description: "Disable file uploads.",
178177
},
179178
"disable-workspace-trust": {
180179
type: "boolean",

test/e2e/downloads.test.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
2323

2424
expect(await codeServerPage.page.isVisible("text=Download...")).toBe(true)
2525
})
26-
26+
2727
test("should see the 'Show Local' button on Save As", async ({ codeServerPage }) => {
2828
// Setup
2929
const workspaceDir = await codeServerPage.workspaceDir
@@ -44,7 +44,6 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
4444
})
4545

4646
test("should see the 'Show Local' button on Save File", async ({ codeServerPage }) => {
47-
4847
// Action
4948
await codeServerPage.navigateMenus(["File", "New Text File"])
5049
await codeServerPage.waitForTab("Untitled-1")
@@ -59,7 +58,6 @@ describe("Downloads (enabled)", ["--disable-workspace-trust"], {}, async () => {
5958
await codeServerPage.page.waitForSelector(".quick-input-widget")
6059
expect(await codeServerPage.page.isVisible("text=Show Local")).toBe(true)
6160
})
62-
6361
})
6462

6563
describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-downloads"], {}, async () => {
@@ -113,5 +111,4 @@ describe("Downloads (disabled)", ["--disable-workspace-trust", "--disable-file-d
113111
await codeServerPage.page.waitForSelector(".quick-input-widget")
114112
expect(await codeServerPage.page.isVisible("text=Show Local")).toBe(false)
115113
})
116-
117114
})

test/e2e/models/CodeServer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export class CodeServerPage {
432432
* it then clicking the match from the results.
433433
*/
434434
async executeCommandViaMenus(command: string) {
435-
await this.navigateMenus(["View", "Command Palette"])
435+
await this.navigateMenus(["View", "Command Palette..."])
436436

437437
await this.page.keyboard.type(command)
438438

test/e2e/uploads.test.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ describe("Uploads (enabled)", ["--disable-workspace-trust"], {}, () => {
2929
await codeServerPage.page.waitForSelector(".quick-input-widget")
3030
expect(await codeServerPage.page.isVisible("text=Show Local")).toBe(true)
3131
})
32-
3332
})
3433

3534
describe("Uploads (disabled)", ["--disable-workspace-trust", "--disable-file-uploads"], {}, () => {
@@ -59,5 +58,4 @@ describe("Uploads (disabled)", ["--disable-workspace-trust", "--disable-file-upl
5958
await codeServerPage.page.waitForSelector(".quick-input-widget")
6059
expect(await codeServerPage.page.isVisible("text=Show Local")).toBe(false)
6160
})
62-
63-
})
61+
})

0 commit comments

Comments
 (0)