feat(i18n): add Polish

This commit is contained in:
Elian Doran
2026-01-04 23:38:46 +02:00
parent 93d50712a9
commit 6c2afc086c
6 changed files with 50 additions and 25 deletions

View File

@@ -70,6 +70,20 @@ test("Attachments listing works", async ({ page, context }) => {
await expect(attachmentsList.locator(".pdf-attachment-item")).toHaveCount(0);
});
test("Download original PDF works", async ({ page, context }) => {
const app = new App(page, context);
await app.goto();
await app.goToNoteInNewTab("Dacia Logan.pdf");
const pdfHelper = new PdfHelper(app);
await pdfHelper.toBeInitialized();
const [ download ] = await Promise.all([
page.waitForEvent("download"),
app.currentNoteSplit.locator(".icon-action.bx.bx-download").click()
]);
expect(download).toBeDefined();
});
test("Layers listing works", async ({ page, context }) => {
const app = new App(page, context);
await app.goto();
@@ -108,4 +122,8 @@ class PdfHelper {
async expectPageToBe(expectedPageNumber: number) {
await expect(this.contentFrame.locator("#pageNumber")).toHaveValue(`${expectedPageNumber}`);
}
async toBeInitialized() {
await expect(this.contentFrame.locator("#pageNumber")).toBeVisible();
}
}