TagSpaces is an offline, open source, document manager with tagging support
fix: TST0114 on windows
Ilian Sapundshievfa70595818e7
diff --git a/.prettierignore b/.prettierignoreindex c7965baa9..0586829a5 100755--- a/.prettierignore+++ b/.prettierignore@@ -26,4 +26,5 @@ src/main/config/config.jsonsrc/renderer/extension-config.tsextensions.github/workflows/codeql.yml-tests/\ No newline at end of file+tests/+capacitor/\ No newline at end of filediff --git a/tests/e2e/folder.pw.e2e.js b/tests/e2e/folder.pw.e2e.jsindex 36ba2f489..31b797e49 100644--- a/tests/e2e/folder.pw.e2e.js+++ b/tests/e2e/folder.pw.e2e.js@@ -322,13 +322,19 @@ test.describe('TST01 - Folder management', () => {timeout: 5000,state: 'hidden',});- await global.client.waitForTimeout(1000);- const thumbRemovedScreenshot = await getElementScreenshot(- '[data-tid=folderThumbTID]',- );- // After clearing, the thumbnail should no longer show the custom image- expect(withThumbScreenshot).not.toBe(thumbRemovedScreenshot);+ // Poll until the thumbnail visually changes (Windows may cache the old image)+ await expect+ .poll(+ async () => {+ const screenshot = await getElementScreenshot(+ '[data-tid=folderThumbTID]',+ );+ return screenshot !== withThumbScreenshot;+ },+ { timeout: 15000 },+ )+ .toBe(true);//cleanupawait deleteFileFromMenu(getGridFileSelector(fileName));await expectElementExist(getGridFileSelector(fileName), false, 2000);diff --git a/tsconfig.json b/tsconfig.jsonindex b12176983..18cd91c66 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -35,5 +35,5 @@"tagspacespro/**/*.ts","tagspacespro/**/*.tsx"],- "exclude": ["test", "release/build", "release/app/dist", ".erb/dll"]+ "exclude": ["test", "release/build", "release/app/dist", ".erb/dll", "capacitor"]}