8000 feat: add displayLang test by jsjoeio · Pull Request #5495 · coder/code-server · GitHub
[go: up one dir, main page]

Skip to content

feat: add displayLang test #5495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add e2e test for display language patch
This tests loading code-server in Spanish using the `--locale` flag.
  • Loading branch information
jsjoeio committed Aug 29, 2022
commit 4452b71b00e8ffaed7af6fcb3d2c22b1c6fb761e
14 changes: 14 additions & 0 deletions test/e2e/displayLang.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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", ["--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)
})
})
0