#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
Fix flakey e2e test (#8161)
Reece Brownee59050d32a85
diff --git a/frontend/editor/src/core/tests/stubbed/pdf-text-editor-workbench-save.spec.ts b/frontend/editor/src/core/tests/stubbed/pdf-text-editor-workbench-save.spec.tsindex b3c61f25a7..571306b4e8 100644--- a/frontend/editor/src/core/tests/stubbed/pdf-text-editor-workbench-save.spec.ts+++ b/frontend/editor/src/core/tests/stubbed/pdf-text-editor-workbench-save.spec.ts@@ -42,6 +42,7 @@ async function editFirstRun(page: Page) {document.execCommand("insertText", false, "ZZSAVED");}, id);await expect(firstRun).toContainText("ZZSAVED");+ await expect(page.getByTestId("pdf-editor-dirty-dot")).toBeVisible();}/** The workbench view switcher's "Active Files" tab (a Mantine radio label). */@@ -63,11 +64,10 @@ test.describe("PDF text editor - standardised save", () => {// Plain save: no download is expected, the edit lands in the workbench.await page.getByTestId("pdf-editor-save").click();- // The unsaved marker clearing proves the export itself completed.- await expect(page.getByTestId("pdf-editor-filename")).not.toContainText(- /unsaved/i,- { timeout: 60_000 },- );+ // The dirty marker clears only after the edit reaches the workbench.+ await expect(page.getByTestId("pdf-editor-dirty-dot")).toBeHidden({+ timeout: 60_000,+ });await activeFilesTab(page).click();const card = page.getByTestId("file-thumbnail").first();@@ -123,12 +123,9 @@ test.describe("PDF text editor - standardised save", () => {await editFirstRun(page);await page.getByTestId("pdf-editor-save").click();- await expect(page.getByTestId("pdf-editor-filename")).not.toContainText(- /unsaved/i,- {- timeout: 60_000,- },- );+ await expect(page.getByTestId("pdf-editor-dirty-dot")).toBeHidden({+ timeout: 60_000,+ });await activeFilesTab(page).click();await expect(