mirror of
https://github.com/coder/code-server.git
synced 2024-12-28 12:14:18 +03:00
f61ec4a41c
Add CLI flag to disable workspace trust feature, as described in documentation: https://code.visualstudio.com/docs/editor/workspace-trust Add test for workspace trust argument.
20 lines
595 B
TypeScript
20 lines
595 B
TypeScript
import * as path from "path"
|
|
import { describe, test, expect } from "./baseFixture"
|
|
|
|
// Given a code-server environment with Spanish Language Pack extension installed
|
|
// and a languagepacks.json in the data-dir
|
|
describe(
|
|
"--locale es",
|
|
["--disable-workspace-trust", "--extensions-dir", path.join(__dirname, "./extensions"), "--locale", "es"],
|
|
{},
|
|
() => {
|
|
test("should load code-server in Spanish", async ({ codeServerPage }) => {
|
|
// When
|
|
const visible = await codeServerPage.page.isVisible("text=Explorador")
|
|
|
|
// Then
|
|
expect(visible).toBe(true)
|
|
})
|
|
},
|
|
)
|