mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-10 03:53:37 -06:00
fix(e2e): i18n test failing to due to English selection
This commit is contained in:
parent
1af0477ac0
commit
8eca14069a
@ -43,7 +43,7 @@ test("User can change language from settings", async ({ page, context }) => {
|
||||
// Check that the default value (English) is set.
|
||||
await expect(app.currentNoteSplit).toContainText("First day of the week");
|
||||
const languageCombobox = app.dropdown(app.currentNoteSplit.locator(".options-section .dropdown").first());
|
||||
await expect(languageCombobox).toContainText("English");
|
||||
await expect(languageCombobox).toContainText("English (United States)");
|
||||
|
||||
// Select Chinese and ensure the translation is set.
|
||||
await languageCombobox.selectOptionByText("简体中文");
|
||||
@ -53,8 +53,8 @@ test("User can change language from settings", async ({ page, context }) => {
|
||||
await expect(languageCombobox).toContainText("简体中文");
|
||||
|
||||
// Select English again.
|
||||
await languageCombobox.selectOptionByText("English");
|
||||
await languageCombobox.selectOptionByText("English (United States)");
|
||||
await app.currentNoteSplit.locator("button[name=restart-app-button]").click();
|
||||
await expect(app.currentNoteSplit).toContainText("Language", { timeout: 15000 });
|
||||
await expect(languageCombobox).toContainText("English");
|
||||
await expect(languageCombobox).toContainText("English (United States)");
|
||||
});
|
||||
|
||||
@ -14,7 +14,7 @@ export interface Locale {
|
||||
const UNSORTED_LOCALES = [
|
||||
{ id: "cn", name: "简体中文", electronLocale: "zh_CN" },
|
||||
{ id: "de", name: "Deutsch", electronLocale: "de" },
|
||||
{ id: "en", name: "English", electronLocale: "en" },
|
||||
{ id: "en", name: "English (United States)", electronLocale: "en" },
|
||||
{ id: "en-GB", name: "English (United Kingdom)", electronLocale: "en_GB" },
|
||||
{ id: "es", name: "Español", electronLocale: "es" },
|
||||
{ id: "fr", name: "Français", electronLocale: "fr" },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user