TagSpaces is an offline, open source, document manager with tagging support
add s3 to minio tests
Stanimir5cc73b695dee
diff --git a/tests/e2e/fileopener.pw.e2e.js b/tests/e2e/fileopener.pw.e2e.jsindex 971ace682..fa52db750 100644--- a/tests/e2e/fileopener.pw.e2e.js+++ b/tests/e2e/fileopener.pw.e2e.js@@ -356,7 +356,7 @@ test.describe('TST08 - File folder properties', () => {await expectFileContain(newFileContent, 15000);});- test('TST0813 - Delete file and check meta and thumbnails deleted [web,minio,electron]', async ({+ test('TST0813 - Delete file and check meta and thumbnails deleted [web,minio,s3,electron]', async ({isMinio,isS3,testDataDir,@@ -481,7 +481,7 @@ test.describe('TST08 - File folder properties', () => {);});- test('TST0828 - Toggle file revisions [web,minio,electron,_pro]', async () => {+ test('TST0828 - Toggle file revisions [web,minio,s3,electron,_pro]', async () => {const fileName = 'sample.html';await openFile(fileName);await createRevision('revision content', 'div[class="note-editing-area"]');@@ -489,7 +489,7 @@ test.describe('TST08 - File folder properties', () => {expect(revision).not.toBeUndefined();});- test('TST0829 - Create and restore revision [web,minio,electron,_pro]', async () => {+ test('TST0829 - Create and restore revision [web,minio,s3,electron,_pro]', async () => {const fileName = 'sample.txt';await openFile(fileName);await expectFileSizeGt(2);@@ -507,7 +507,7 @@ test.describe('TST08 - File folder properties', () => {await expectFileContain(initContent, 15000);});- test('TST0830 - Create, open and delete revision [web,minio,electron,_pro]', async () => {+ test('TST0830 - Create, open and delete revision [web,minio,s3,electron,_pro]', async () => {//create revisionconst fileName = 'sample.md';await openFile(fileName);@@ -546,7 +546,7 @@ test.describe('TST08 - File folder properties', () => {8000,);});- test('TST0831 - Create 2 revisions and delete all revision [web,minio,electron,_pro]', async () => {+ test('TST0831 - Create 2 revisions and delete all revision [web,minio,s3,electron,_pro]', async () => {const fileName = 'sample.md';await openFile(fileName);await createRevision(diff --git a/tests/e2e/folderprops.pw.e2e.js b/tests/e2e/folderprops.pw.e2e.jsindex c4f3518fa..28a0258e5 100644--- a/tests/e2e/folderprops.pw.e2e.js+++ b/tests/e2e/folderprops.pw.e2e.js@@ -253,7 +253,7 @@ test.describe('TST02 - Folder properties', () => {//expect(propsTags).toContain(tagName);});- test('TST0213 - Add description to folder [web,minio,electron,_pro]', async () => {+ test('TST0213 - Add description to folder [web,minio,s3,electron,_pro]', async () => {await addDescription('testDescription');await expectElementExist('[data-tid=gridCellDescription]',diff --git a/tests/e2e/general.pw.e2e.js b/tests/e2e/general.pw.e2e.jsindex 5d3508ac5..eefdf10ff 100644--- a/tests/e2e/general.pw.e2e.js+++ b/tests/e2e/general.pw.e2e.js@@ -88,7 +88,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST51 - Perspective Grid', () => {- test('TST0501 - Create HTML file [web,electron,minio]', async () => {+ test('TST0501 - Create HTML file [web,minio,s3,electron]', async () => {// await global.client.waitForLoadState('networkidle');await createNewDirectory();await expectElementExist(@@ -114,7 +114,7 @@ test.describe('TST51 - Perspective Grid', () => {// await takeScreenshot('TST0501 after deleteDirectory');});- test('TST0502 - Create MD file [web,electron,minio]', async () => {+ test('TST0502 - Create MD file [web,minio,s3,electron]', async () => {await createNewDirectory();await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']',@@ -139,7 +139,7 @@ test.describe('TST51 - Perspective Grid', () => {// await takeScreenshot('TST0502 after deleteDirectory');});- test('TST0503 - Create TEXT file [web,electron,minio]', async () => {+ test('TST0503 - Create TEXT file [web,minio,s3,electron]', async () => {await createNewDirectory();await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']',@@ -164,7 +164,7 @@ test.describe('TST51 - Perspective Grid', () => {// await takeScreenshot('TST0503 after deleteDirectory');});- test('TST0510 - Generate thumbnail from Images [electron,minio]', async () => {+ test('TST0510 - Generate thumbnail from Images [electron,minio,s3]', async () => {const filtered = ['ico', 'tiff', 'tif', 'svg'];/*if (global.isMinio || global.isS3) {filtered.push('svg');@@ -176,7 +176,7 @@ test.describe('TST51 - Perspective Grid', () => {await expectMetaFilesExist(metaFiles);});- test('TST0510a - Generate thumbnail from JPG w. rotation from EXIF [web,minio,electron]', async ({+ test('TST0510a - Generate thumbnail from JPG w. rotation from EXIF [web,minio,s3,electron]', async ({isWin,isWeb,}) => {@@ -259,25 +259,25 @@ test.describe('TST51 - Perspective Grid', () => {await expectMetaFilesExist(['sample.tiff.jpg']);});- test.skip('TST0520 - Generate thumbnail from PSD [electron,minio,_pro]', async () => {+ test.skip('TST0520 - Generate thumbnail from PSD [electron,minio,s3,_pro]', async () => {// TODO fixawait expectMetaFilesExist(['sample.psd.jpg']);});- test('TST0522 - Generate thumbnail from URL [electron,minio,_pro]', async () => {+ test('TST0522 - Generate thumbnail from URL [electron,minio,s3,_pro]', async () => {await expectMetaFilesExist(['sample.url.jpg']);});- test('TST0523 - Generate thumbnail from HTML [electron,minio,_pro]', async () => {+ test('TST0523 - Generate thumbnail from HTML [electron,minio,s3,_pro]', async () => {await expectMetaFilesExist(['sample.html.jpg']);});- test('TST0524 - Generate thumbnail from TXT,MD [electron,minio,_pro]', async () => {+ test('TST0524 - Generate thumbnail from TXT,MD [electron,minio,s3,_pro]', async () => {// MD thumbs generation is stoppedawait expectMetaFilesExist(['sample.txt.jpg']);});- test('TST0529 - Import EXIF information as Tags [web,minio,electron,_pro]', async () => {+ test('TST0529 - Import EXIF information as Tags [web,minio,s3,electron,_pro]', async () => {await openFile('sample_exif[iptc].jpg', 'showPropertiesTID');await clickOn('[data-tid=openGalleryPerspective]');@@ -299,7 +299,7 @@ test.describe('TST51 - Perspective Grid', () => {await expectElementExist('[data-tid=gridperspectiveToolbar]', true, 5000);});- test('TST0530 - Adding sidecar geo or custom date tag with dnd [web,minio,electron,_pro]', async () => {+ test('TST0530 - Adding sidecar geo or custom date tag with dnd [web,minio,s3,electron,_pro]', async () => {const tagName = 'custom-date';const sourceTagGroup = 'Smart Tags';diff --git a/tests/e2e/location.pw.e2e.js b/tests/e2e/location.pw.e2e.jsindex 32dcd3b9f..bdfb4c5a7 100644--- a/tests/e2e/location.pw.e2e.js+++ b/tests/e2e/location.pw.e2e.js@@ -154,7 +154,7 @@ test.describe('TST03 - Testing locations:', () => {expect(lastLocation).toBe(testLocationName);});- test('TST0328 - Creating location index [web,minio,electron,_pro]', async ({+ test('TST0328 - Creating location index [web,minio,s3,electron,_pro]', async ({isS3,isMinio,isWeb,diff --git a/tests/e2e/markdown-editor.pw.e2e.js b/tests/e2e/markdown-editor.pw.e2e.jsindex 07a292a04..685e52781 100644--- a/tests/e2e/markdown-editor.pw.e2e.js+++ b/tests/e2e/markdown-editor.pw.e2e.js@@ -55,7 +55,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST69 - Markdown editor', () => {- test('TST6901 - Open and render md file [web,minio,electron]', async () => {+ test('TST6901 - Open and render md file [web,minio,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.md'),'fileMenuOpenFile',@@ -76,7 +76,7 @@ test.describe('TST69 - Markdown editor', () => {.toBe(true);});- test('TST6902 - Open settings [web,minio,electron]', async () => {+ test('TST6902 - Open settings [web,minio,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.md'),'fileMenuOpenFile',diff --git a/tests/e2e/objectstore.pw.e2e.js b/tests/e2e/objectstore.pw.e2e.jsindex 47df9798f..e1c4fbfed 100644--- a/tests/e2e/objectstore.pw.e2e.js+++ b/tests/e2e/objectstore.pw.e2e.js@@ -46,7 +46,7 @@ test.beforeEach(async ({ isMinio, isS3 }) => {});test.describe('TST09 - ObjectStore location', () => {- test('TST0917 - Create, open and remove bookmark to S3 file in properties [web,minio,_pro]', async () => {+ test('TST0917 - Create, open and remove bookmark to S3 file in properties [web,minio,s3,_pro]', async () => {const bookmarkFileTitle = 'sample.txt';const bookmarkFileTid = dataTidFormat(bookmarkFileTitle);await openContextEntryMenu(diff --git a/tests/e2e/perspective-grid-right-button.pw.e2e.js b/tests/e2e/perspective-grid-right-button.pw.e2e.jsindex ac1cf9264..7aee47654 100644--- a/tests/e2e/perspective-grid-right-button.pw.e2e.js+++ b/tests/e2e/perspective-grid-right-button.pw.e2e.js@@ -414,7 +414,7 @@ test.describe('TST50** - Right button on a file', () => {/*** delete dir is not supported on minio*/- test('TST5035 - Delete directory (directory menu) [web,minio,electron]', async () => {+ test('TST5035 - Delete directory (directory menu) [web,minio,s3,electron]', async () => {// await setSettings('[data-tid=settingsSetUseTrashCan]');// await global.client.pause(500);await global.client.dblclick(getGridFileSelector('empty_folder'));diff --git a/tests/e2e/quick-access.pw.e2e.js b/tests/e2e/quick-access.pw.e2e.jsindex 26ac5823f..ebf240a2d 100644--- a/tests/e2e/quick-access.pw.e2e.js+++ b/tests/e2e/quick-access.pw.e2e.js@@ -57,7 +57,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST09 - Quick access', () => {- test('TST0901 - Create, rename and delete stored search [electron,minio]', async () => {+ test('TST0901 - Create, rename and delete stored search [electron,minio,s3]', async () => {const storedSearchTitle = 'jpgSearch';await createSavedSearch({ title: storedSearchTitle, textQuery: 'jpg' });//await expectElementExist('[data-tid=quickAccessButton]');@@ -82,7 +82,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0902 - Create, execute and delete stored search [electron,minio]', async () => {+ test('TST0902 - Create, execute and delete stored search [electron,minio,s3]', async () => {const storedSearchTitle = 'jpgExecutedSearch';const textQuery = 'jpg';await createSavedSearch({ title: storedSearchTitle, textQuery });@@ -105,7 +105,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0905 - Create, open and remove bookmark to file in properties [web,minio,electron,_pro]', async () => {+ test('TST0905 - Create, open and remove bookmark to file in properties [web,minio,s3,electron,_pro]', async () => {const bookmarkFileTitle = 'sample.txt';const bookmarkFileTid = dataTidFormat(bookmarkFileTitle);await openContextEntryMenu(@@ -139,7 +139,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0906 - Create, open and remove bookmark to folder in quickaccess [web,minio,electron,_pro]', async () => {+ test('TST0906 - Create, open and remove bookmark to folder in quickaccess [web,minio,s3,electron,_pro]', async () => {const testFolder = 'empty_folder';await rightClickOn('[data-tid=fsEntryName_' + testFolder + ']');await clickOn('[data-tid=showProperties]');@@ -184,7 +184,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0907 - Create 2 local bookmarks and delete all bookmarks [electron,minio,_pro]', async () => {+ test('TST0907 - Create 2 local bookmarks and delete all bookmarks [electron,minio,s3,_pro]', async () => {await clickOn('[data-tid=quickAccessButton]');const bookmarks = ['sample.txt', 'sample.jpg'];for (let i = 0; i < bookmarks.length; i++) {@@ -215,7 +215,7 @@ test.describe('TST09 - Quick access', () => {);}});- test('TST0908 - Add, open and remove recently opened file [web,minio,electron,_pro]', async () => {+ test('TST0908 - Add, open and remove recently opened file [web,minio,s3,electron,_pro]', async () => {// Addconst fileTitle = 'sample.jpg';const fileTid = dataTidFormat(fileTitle);@@ -245,7 +245,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0909 - Add 2 recently opened files and clear history [electron,minio,_pro]', async () => {+ test('TST0909 - Add 2 recently opened files and clear history [electron,minio,s3,_pro]', async () => {await clickOn('[data-tid=quickAccessButton]');if (!(await isDisplayed('[data-tid=fileCloseHistoryTID]'))) {await clickOn('[data-tid=fileOpenHistoryTID]');@@ -279,7 +279,7 @@ test.describe('TST09 - Quick access', () => {}});- test.skip('TST0910 - Add, open and remove recently edited file [web,minio,electron,_pro]', async () => {+ test.skip('TST0910 - Add, open and remove recently edited file [web,minio,s3,electron,_pro]', async () => {// Addconst fileTitle = 'sample.txt';const fileTid = dataTidFormat(fileTitle);@@ -309,7 +309,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0912 - Add, open and remove recently opened folder properties [web,minio,electron,_pro]', async () => {+ test('TST0912 - Add, open and remove recently opened folder properties [web,minio,s3,electron,_pro]', async () => {// Addconst testFolder = 'empty_folder';await rightClickOn('[data-tid=fsEntryName_' + testFolder + ']');@@ -345,7 +345,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0913 - Add 2 recently opened folders and clear history [web,minio,electron,_pro]', async () => {+ test('TST0913 - Add 2 recently opened folders and clear history [web,minio,s3,electron,_pro]', async () => {const folders = ['new_folder', 'new_folder1'];for (let i = 0; i < folders.length; i++) {const testFolder = await createNewDirectory(folders[i]);@@ -393,7 +393,7 @@ test.describe('TST09 - Quick access', () => {}});- test.skip('TST0914 - Add search to search history and search [web,minio,electron]', async () => {+ test.skip('TST0914 - Add search to search history and search [web,minio,s3,electron]', async () => {await searchEngine('txt');await clickOn('#clearSearchID');diff --git a/tests/e2e/search.pw.e2e.js b/tests/e2e/search.pw.e2e.jsindex d48f2aff6..4c588129d 100644--- a/tests/e2e/search.pw.e2e.js+++ b/tests/e2e/search.pw.e2e.js@@ -144,7 +144,7 @@ test.describe('TST06 - Test Search in file structure:', () => {// expected to reset all search engine});*/- test('TST0609 - Show thumbnails of image files in the search results [web,minio,electron]', async ({+ test('TST0609 - Show thumbnails of image files in the search results [web,minio,s3,electron]', async ({isWin,isWeb,}) => {@@ -490,7 +490,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('text_file.txt'), true, 5000);});- test('TST0647 - Search by new sidecar tag [web,minio,electron]', async () => {+ test('TST0647 - Search by new sidecar tag [web,minio,s3,electron]', async () => {await setSettings('[data-tid=settingsSetPersistTagsInSidecarFile]', true);const tag = 'test-tag10';const fileName = 'sample';diff --git a/tests/e2e/viewer-audiovideo.pw.e2e.js b/tests/e2e/viewer-audiovideo.pw.e2e.jsindex 8ed8ef8d8..11f36130c 100644--- a/tests/e2e/viewer-audiovideo.pw.e2e.js+++ b/tests/e2e/viewer-audiovideo.pw.e2e.js@@ -45,7 +45,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST59 - Media player', () => {- test('TST5901 - Play ogg file [web,minio,electron]', async () => {+ test('TST5901 - Play ogg file [web,minio,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.ogg'),'fileMenuOpenFile',@@ -56,7 +56,7 @@ test.describe('TST59 - Media player', () => {/*** http://localhost:63342/test-artifacts/playwright-report/trace/manifest.webmanifest?_ijt=eojod6f91jej1donf3vd1jp8ju*/- test('TST5902 - Play ogv file [web,minio,electron]', async ({ isWin }) => {+ test('TST5902 - Play ogv file [web,minio,s3,electron]', async ({ isWin }) => {if (!isWin) {await openContextEntryMenu(getGridFileSelector('sample.ogv'),@@ -66,7 +66,7 @@ test.describe('TST59 - Media player', () => {}});- test('TST5903 - Open and close about dialog [web,minio,electron]', async () => {+ test('TST5903 - Open and close about dialog [web,minio,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.mp4'),'fileMenuOpenFile',@@ -98,7 +98,7 @@ test.describe('TST59 - Media player', () => {expect(aboutNotExists).toBeTruthy();});- test('TST5904 - Play mp3 [web,minio,electron]', async () => {+ test('TST5904 - Play mp3 [web,minio,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.mp3'),'fileMenuOpenFile',@@ -109,7 +109,10 @@ test.describe('TST59 - Media player', () => {/*** for mp4 codecs missing web on Chromium browser*/- test('TST5905 - Play webm [web,minio,electron]', async ({ isWeb, isWin }) => {+ test('TST5905 - Play webm [web,minio,s3,electron]', async ({+ isWeb,+ isWin,+ }) => {await openContextEntryMenu(getGridFileSelector('sample.webm'),'fileMenuOpenFile',@@ -127,7 +130,7 @@ test.describe('TST59 - Media player', () => {expect(playExists).toBeTruthy();*/});- test('TST5906 - Play flac [web,minio,electron]', async () => {+ test('TST5906 - Play flac [web,minio,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.flac'),'fileMenuOpenFile',@@ -135,7 +138,7 @@ test.describe('TST59 - Media player', () => {await expectMediaPlay(false);});- test('TST5911 - Play 3gp [web,minio,electron]', async () => {+ test('TST5911 - Play 3gp [web,minio,s3,electron]', async () => {/*await clickOn('[data-tid=settings]');await clickOn('[data-tid=fileTypeSettingsDialog]');const selectEl = global.client.locator('[data-tid=viewerTIDgif]');