Skip to content

Commit 4452b71

Browse files
committed
feat: add e2e test for display language patch
This tests loading code-server in Spanish using the `--locale` flag.
1 parent a15ce70 commit 4452b71

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/e2e/displayLang.test.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import * as path from "path"
2+
import { describe, test, expect } from "./baseFixture"
3+
4+
// Given a code-server environment with Spanish Language Pack extension installed
5+
// and a languagepacks.json in the data-dir
6+
describe("--locale es", ["--extensions-dir", path.join(__dirname, "./extensions"), "--locale", "es"], {}, () => {
7+
test("should load code-server in Spanish", async ({ codeServerPage }) => {
8+
// When
9+
const visible = await codeServerPage.page.isVisible("text=Explorador")
10+
11+
// Then
12+
expect(visible).toBe(true)
13+
})
14+
})

0 commit comments

Comments
 (0)