TagSpaces is an offline, open source, document manager with tagging support
fix TST0328
Stanimiraa599e76bb05
diff --git a/tests/e2e/general.helpers.js b/tests/e2e/general.helpers.jsindex fa52e071f..1e4138b47 100644--- a/tests/e2e/general.helpers.js+++ b/tests/e2e/general.helpers.js@@ -876,7 +876,7 @@ export function normalized(content) {return content.replace(// match optional leading comma, then "uuid" or "id" with a string value, OR "lmdt" with a number- /,?"(?:uuid|id)"\s*:\s*"[^"]*"|,?"lmdt"\s*:\s*\d+/g,+ /,?"(?:uuid|id)"\s*:\s*"[^"]*"|,?"(?:lmdt|size)"\s*:\s*\d+/g,'',).trim();@@ -885,6 +885,8 @@ export function normalized(content) {* Assert that a local file contains the given substring.** @param filePath - Path to the file on disk.+ * @param fileName+ * @param rootFolder* @param txtToContain - Substring you expect to find in the file.*/export async function expectLocalFileContain(diff --git a/tests/e2e/location.pw.e2e.js b/tests/e2e/location.pw.e2e.jsindex c9c269e48..4cbb58d8a 100644--- a/tests/e2e/location.pw.e2e.js+++ b/tests/e2e/location.pw.e2e.js@@ -149,8 +149,7 @@ test.describe('TST03 - Testing locations:', () => {expect(lastLocation).toBe(testLocationName);});- test('TST0328 - Creating location index WS []', async ({- //todo electron+ test('TST0328 - Creating location index WS [electron]', async ({isS3,isMinio,testDataDir,@@ -197,9 +196,9 @@ test.describe('TST03 - Testing locations:', () => {);await openLocationMenu(locationFolderName);await clickOn('[data-tid=indexLocation]');- await global.client.waitForTimeout(880000);+ //await global.client.waitForTimeout(880000);const indexFileContent =- '[{"name":"testFolder","path":"testFolder","tags":[],"meta":{},"isFile":false,"size":96,"extension":""},{"name":"test_file1[tag1 tag2].md","path":"test_file1[tag1 tag2].md","tags":[{"title":"tag1","type":"plain"},{"title":"tag2","type":"plain"}],"meta":{,"description":"test file 1 desc\\n"},"isFile":true,"size":14,"textContent":"test md file 1","extension":"md"},{"name":"test_file2[tag3 tag4].txt","path":"test_file2[tag3 tag4].txt","tags":[{"title":"tag3","type":"plain"},{"title":"tag4","type":"plain"}],"meta":{,"description":"test file 2 desc\\n"},"isFile":true,"size":15,"textContent":"test txt file 2","extension":"txt"}]';+ '[{"name":"testFolder","path":"testFolder","meta":{},"isFile":false},{"name":"test_file1[tag1 tag2].md","path":"test_file1[tag1 tag2].md","meta":{},"isFile":true,"textContent":"test md file 1","extension":"md"},{"name":"test_file2[tag3 tag4].txt","path":"test_file2[tag3 tag4].txt","meta":{},"isFile":true,"textContent":"test txt file 2","extension":"txt"}]';//await setFileTypeExtension('json');const rootFolder = locationFolderName + '/' + AppConfig.metaFolder;//await global.client.waitForTimeout(180000);