|
|
|
|
@ -1,6 +1,14 @@
|
|
|
|
|
import { test, expect, Page } from "@playwright/test";
|
|
|
|
|
import App from "./support/app";
|
|
|
|
|
|
|
|
|
|
test("Displays translation on desktop", async ({ page }) => {
|
|
|
|
|
const app = new App(page);
|
|
|
|
|
await app.goto();
|
|
|
|
|
|
|
|
|
|
await expect(page.locator("#left-pane .quick-search input"))
|
|
|
|
|
.toHaveAttribute("placeholder", "Quick search");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test("Displays translations in Settings", async ({ page }) => {
|
|
|
|
|
const app = new App(page);
|
|
|
|
|
await app.goto();
|
|
|
|
|
@ -8,8 +16,8 @@ test("Displays translations in Settings", async ({ page }) => {
|
|
|
|
|
await app.goToSettings();
|
|
|
|
|
await app.noteTree.getByText("Appearance").click();
|
|
|
|
|
|
|
|
|
|
expect(app.currentNoteSplit).toContainText("Localization");
|
|
|
|
|
expect(app.currentNoteSplit).toContainText("Language");
|
|
|
|
|
await expect(app.currentNoteSplit).toContainText("Localization");
|
|
|
|
|
await expect(app.currentNoteSplit).toContainText("Language");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test("User can change language from settings", async ({ page }) => {
|
|
|
|
|
|