Skip to content

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

windows fixes for e2e

Stanimir0ddf88f3cb25
diff --git a/tests/e2e/general.helpers.js b/tests/e2e/general.helpers.js
index 7dc03a6be..4363e55c0 100644
--- a/tests/e2e/general.helpers.js
+++ b/tests/e2e/general.helpers.js
@@ -713,6 +713,7 @@ export async function reloadDirectory() {
}
export async function createNewDirectory(dirName = testFolder) {
+ await isDisplayed('[data-tid=folderContainerOpenDirMenu]');
await clickOn('[data-tid=folderContainerOpenDirMenu]');
await clickOn('[data-tid=newSubDirectory]');
// set new dir name
diff --git a/tests/e2e/perspective-grid-right-button.pw.e2e.js b/tests/e2e/perspective-grid-right-button.pw.e2e.js
index 0175838e9..1975d7b8b 100644
--- a/tests/e2e/perspective-grid-right-button.pw.e2e.js
+++ b/tests/e2e/perspective-grid-right-button.pw.e2e.js
@@ -67,7 +67,7 @@ describe('TST50** - Right button on a file', () => {
);
// Check if the file is opened
// await delay(1500);
- await expectElementExist('#FileViewer');
+ await expectElementExist('#FileViewer', true, 2000);
const webViewer = await global.client.$('#FileViewer');
// await webViewer.waitForDisplayed();
//await delay(5000);
@@ -77,9 +77,12 @@ describe('TST50** - Right button on a file', () => {
const iframeBody = await iframe.$('body');
await isElementDisplayed(iframeBody);
const bodyTxt = await iframeBody.innerText();
-
+ const containTID = toContainTID(bodyTxt);
+ if (!containTID) {
+ console.debug(bodyTxt);
+ }
//await global.client.switchToParentFrame();
- expect(toContainTID(bodyTxt)).toBe(true);
+ expect(containTID).toBe(true);
});
test('TST5017 - Rename file [web,minio,electron]', async () => {
diff --git a/tests/e2e/welcome.helpers.js b/tests/e2e/welcome.helpers.js
index 927d7f42e..deda47569 100644
--- a/tests/e2e/welcome.helpers.js
+++ b/tests/e2e/welcome.helpers.js
@@ -15,12 +15,15 @@ export async function closeWelcome() {
}
export async function closeWelcomePlaywright() {
- if (await isDisplayed('[data-tid=nextStepOnboarding]', true, 3000)) {
+ if (await isDisplayed('[data-tid=closeOnboardingDialog]', true, 3000)) {
+ await global.client.click('[data-tid=closeOnboardingDialog]');
+ /*
await global.client.click('[data-tid=nextStepOnboarding]');
await global.client.click('[data-tid=nextStepOnboarding]');
await global.client.click('[data-tid=nextStepOnboarding]');
await global.client.click('[data-tid=nextStepOnboarding]');
await global.client.click('[data-tid=startTagSpacesAfterOnboarding]');
+ */
await global.client.click('[data-tid=agreeLicenseDialog]');
}
}