TagSpaces is an offline, open source, document manager with tagging support
e2e fixes TST4915
Stanimircd3196bb8cb1
diff --git a/tests/e2e/perspective-kanban.helpers.js b/tests/e2e/perspective-kanban.helpers.jsindex 7315237b8..4d963e21f 100644--- a/tests/e2e/perspective-kanban.helpers.js+++ b/tests/e2e/perspective-kanban.helpers.js@@ -19,7 +19,7 @@ export async function createMdCard(cardName, column = 'empty_folder') {await typeInputValue('[data-tid=newEntryDialogInputTID] input', cardName, 0);await clickOn('[data-tid=createMarkdownButton]');const cardSelector = '[data-tid=fsEntryName_' + cardName + '_md]';- await expectElementExist(cardSelector, true);+ await expectElementExist(cardSelector, true, 5000);const card = await global.client.locator(cardSelector);const parent = await card.locator('..');return await parent.getAttribute('data-entry-id');diff --git a/tests/e2e/perspective-kanban.pw.e2e.js b/tests/e2e/perspective-kanban.pw.e2e.jsindex bb6de5fb3..81cdc1f20 100644--- a/tests/e2e/perspective-kanban.pw.e2e.js+++ b/tests/e2e/perspective-kanban.pw.e2e.js@@ -79,7 +79,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {await expectElementExist('[data-tid=empty_folderKanBanColumnTID]',true,- 8000,+ 10000,);});@@ -392,7 +392,7 @@ test.describe('TST49 - Perspective KanBan', () => {);});- test('TST4915 - Load thumbnails for board, column and cards [web,minio,electron,_pro]', async () => {+ test('TST4915a - Load thumbnails for board [web,minio,electron,_pro]', async () => {//board thumbnailawait setPerspectiveSetting('kanban',@@ -405,7 +405,7 @@ test.describe('TST49 - Perspective KanBan', () => {await clickOn('[data-tid=showFolderContentTID]');await openContextEntryMenu(- getGridFileSelector('sample.bmp'),+ getGridFileSelector('sample.c'),'setAsThumbTID',);const newStyle = await waitUntilChanged(@@ -415,8 +415,9 @@ test.describe('TST49 - Perspective KanBan', () => {);expect(initThumbStyle).not.toBe(newStyle);+ });- //column thumbnail+ test('TST4915b - Load thumbnails for column [web,minio,electron,_pro]', async () => {await setPerspectiveSetting('kanban','[data-tid=kanBanPerspectiveToggleShowSubFolderDetails]',@@ -450,7 +451,11 @@ test.describe('TST49 - Perspective KanBan', () => {);expect(initColumnThumbStyle).not.toBe(newColumnThumbStyle);+ });+ test('TST4915c - Load thumbnails for cards [web,minio,electron,_pro]', async () => {+ const columnName = 'empty_folder3';+ await createColumn(columnName);//card thumbnailconst cardName = 'testCard';const cardId = await createMdCard(cardName, columnName);