Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix e2e

sytolk17b87b6f5b82
diff --git a/tests/e2e/key-bindings.pw.e2e.js b/tests/e2e/key-bindings.pw.e2e.js
index 40c2157f5..0e70c0f95 100644
--- a/tests/e2e/key-bindings.pw.e2e.js
+++ b/tests/e2e/key-bindings.pw.e2e.js
@@ -77,20 +77,24 @@ test.describe('TST13 - Settings Key Bindings [electron]', () => {
const oldName = await setInputKeys('renameEntryDialogInput', newTitle);
await clickOn('[data-tid=confirmRenameEntry]');
//await expectElementExist('[data-tid=detailsTabTID]', true);
- await expectElementExist(getGridFileSelector(newTitle + '.pdf'));
+ await expectElementExist(
+ getGridFileSelector(newTitle + '.pdf'),
+ true,
+ 5000,
+ );
//rename back
const name = extractFileNameWithoutExt(oldName, '/');
await clickOn(getGridFileSelector(newTitle + '.pdf'));
await global.client.keyboard.press('F2');
await setInputKeys('renameEntryDialogInput', name);
await clickOn('[data-tid=confirmRenameEntry]');
- await expectElementExist(getGridFileSelector(oldName));
+ await expectElementExist(getGridFileSelector(oldName), true, 5000);
});
test('TST1313 - Test open file [electron]', async () => {
await clickOn(getGridFileSelector(testFileName));
await global.client.keyboard.press('Enter');
- await expectElementExist('[data-tid=detailsTabTID]', true);
+ await expectElementExist('[data-tid=detailsTabTID]', true, 5000);
});
test('TST1315 - Test delete file [electron]', async () => {