mirror of
https://github.com/coder/code-server.git
synced 2026-09-10 03:40:31 +02:00
Add local settings test (#7992)
This commit is contained in:
19
test/e2e/settings.test.ts
Normal file
19
test/e2e/settings.test.ts
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import { promises as fs } from "fs"
|
||||||
|
import * as path from "path"
|
||||||
|
import { clean } from "../utils/helpers"
|
||||||
|
import { describe, test, expect } from "./baseFixture"
|
||||||
|
|
||||||
|
describe("settings", ["--disable-workspace-trust"], {}, () => {
|
||||||
|
const testName = "settings-local"
|
||||||
|
test.beforeAll(async () => {
|
||||||
|
await clean(testName)
|
||||||
|
})
|
||||||
|
|
||||||
|
test("should see startup editor set to none", async ({ codeServerPage }) => {
|
||||||
|
await codeServerPage.navigateMenus(["File", "Preferences", "Settings"])
|
||||||
|
await codeServerPage.page.waitForSelector(".settings-editor")
|
||||||
|
await codeServerPage.page.keyboard.type("startupEditor")
|
||||||
|
const el = codeServerPage.page.getByLabel("workbench.startupEditor")
|
||||||
|
await expect(el).toHaveValue("none")
|
||||||
|
})
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user