Skip to content

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

add minio support and tests for e2e

sytolk38785a0b707b
diff --git a/.github/workflows/workflow_scheduled_mac_minio_pro.yml b/.github/workflows/workflow_scheduled_mac_minio_pro.yml
new file mode 100644
index 000000000..588c0486b
--- /dev/null
+++ b/.github/workflows/workflow_scheduled_mac_minio_pro.yml
@@ -0,0 +1,44 @@
+name: Nightly E2E Tests Electron MacOS
+on:
+ schedule:
+ - cron: '0 4 * * *'
+ workflow_dispatch:
+
+jobs:
+ e2eTestsElectronMac:
+ name: Test TagSpaces Desktop on Mac
+ runs-on: macos-latest
+ steps:
+ - name: Checking out default branch
+ uses: actions/checkout@v4
+ with:
+ ref: develop
+ submodules: true
+ - name: Checkout TestData
+ uses: actions/checkout@v4
+ with:
+ repository: tagspaces/testdata
+ path: tests/testdata
+ - name: Configure NPM
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20.x'
+ - name: Running npm install, prettier and type checks
+ run: |
+ npm install
+ npm run prettier-check
+ npm run type-check
+ - name: Run Unit tests
+ run: npm run test-unit
+ - name: Run Electron tests
+ run: |
+ npm run build-e2e
+ npm run test-playwright-minio
+ - uses: actions/upload-artifact@v4
+ if: failure()
+ with:
+ name: test-artifacts
+ path: |
+ tests/test-reports/
+ test-results/
+ playwright-report/
diff --git a/.github/workflows/workflow_scheduled_win_minio_pro.yml b/.github/workflows/workflow_scheduled_win_minio_pro.yml
new file mode 100644
index 000000000..84217bef9
--- /dev/null
+++ b/.github/workflows/workflow_scheduled_win_minio_pro.yml
@@ -0,0 +1,49 @@
+name: Nightly E2E Tests Electron Pro Windows
+on:
+ schedule:
+ - cron: '0 1 * * *'
+ workflow_dispatch:
+
+jobs:
+ e2eTestsElectronWin:
+ name: Test TagSpaces Pro on Windows
+ runs-on: windows-latest
+ steps:
+ - name: Checking out default branch
+ uses: actions/checkout@v4
+ with:
+ ref: develop
+ submodules: true
+ - name: Checkout TestData
+ uses: actions/checkout@v4
+ with:
+ repository: tagspaces/testdata
+ path: tests/testdata
+ - name: Configure NPM for TagSpaces Pro
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20.x'
+ always-auth: true
+ registry-url: https://npm.pkg.github.com/
+ scope: '@tagspacespro'
+ - name: Running npm install, prettier and type checks
+ run: |
+ npm install
+ npm run prettier-check
+ npm run type-check
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}
+ - name: Run Unit tests
+ run: npm run test-unit
+ - name: Run Electron tests
+ run: |
+ npm run build-e2e
+ npm run test-playwright-minio
+ - uses: actions/upload-artifact@v4
+ if: failure()
+ with:
+ name: test-artifacts
+ path: |
+ tests/test-reports/
+ test-results/
+ playwright-report/
diff --git a/package-lock.json b/package-lock.json
index 0bdcc34d6..1c625d46b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,10 +19,10 @@
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "^5.15.19",
"@mui/x-date-pickers": "^5.0.20",
- "@tagspaces/tagspaces-common": "4.3.16",
- "@tagspaces/tagspaces-common-aws3": "4.3.16",
- "@tagspaces/tagspaces-common-cordova": "4.3.16",
- "@tagspaces/tagspaces-indexer": "4.3.16",
+ "@tagspaces/tagspaces-common": "4.3.18",
+ "@tagspaces/tagspaces-common-aws3": "4.3.18",
+ "@tagspaces/tagspaces-common-cordova": "4.3.18",
+ "@tagspaces/tagspaces-indexer": "4.3.18",
"@tagspaces/tagspaces-md": "4.3.13",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
@@ -13741,9 +13741,9 @@
}
},
"node_modules/@tagspaces/tagspaces-common": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.3.16.tgz",
- "integrity": "sha512-73qy6kfclmG/u6ZcyC6esUvKR+GME9jiEDmaRh3sMC2id318+DygDirbagIjurwMFLaUChd+Yabs36gthao5sQ==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.3.18.tgz",
+ "integrity": "sha512-Plw8h2lXzzFL37l8tlH91YaC/5Avh/bVMMrllDQT+0B5yN7xkCxa999G64H7uR22WSo5hIJrnF+3kAuDTFWM7w==",
"dependencies": {
"dotenv": "^16.0.2",
"picomatch": "^3.0.1",
@@ -13751,11 +13751,11 @@
}
},
"node_modules/@tagspaces/tagspaces-common-aws3": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.3.16.tgz",
- "integrity": "sha512-VyOs+mC6AL4lR+ZHmoiVuP1poGbIA2ZLZMy4NkxWPfXNEcvM3kKnoUy0pals8A4YBTNFqbupHY0EfxiXX6ucDQ==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws3/-/tagspaces-common-aws3-4.3.18.tgz",
+ "integrity": "sha512-pjhAkcmRJ0hBvv/EF3y/3nss8eVr+N7yhJ++5tBCrPTch6bWo/JCD6if7OTww1aVnF6AZ54g5E14k/ZMwQUWjw==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.3.16",
+ "@tagspaces/tagspaces-common": "^4.3.18",
"aws-sdk": "2.1605.0"
}
},
@@ -13811,11 +13811,11 @@
}
},
"node_modules/@tagspaces/tagspaces-common-cordova": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.3.16.tgz",
- "integrity": "sha512-m/11YclIdr/1ckuNSqdZtqI74PrTo0FJBpR4R1cBHMmHDX7UjiL74VxA63hr1yVRkBtsdpxQNLuBpvXEgzy2Jw==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.3.18.tgz",
+ "integrity": "sha512-tN4Cdl26xX6reSGK/oun431KUMhRLyqwcVNYBm57KfR2xVuE+bYkNd/tZmBzj050uERs2XJU5+Hz4qPb5Ya4zA==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.3.16"
+ "@tagspaces/tagspaces-common": "^4.3.18"
}
},
"node_modules/@tagspaces/tagspaces-common/node_modules/uuid": {
@@ -13827,11 +13827,11 @@
}
},
"node_modules/@tagspaces/tagspaces-indexer": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.3.16.tgz",
- "integrity": "sha512-cMmaf7GjAh0Gby4LyRDlZOm2QOrmByvDzRjiLSQhIbqsjWtbmNDUtETDDADORrmekfXLD2m+cZVqSgF8MtimFQ==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.3.18.tgz",
+ "integrity": "sha512-rosxOzNIpm9tqApIbRRIYxx0nEGolg21j6nivQ6umnLqzCQKjq8dbvl5eqNrgkV9nn8UnyGl6uGJAHHvS9f+aQ==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.3.16"
+ "@tagspaces/tagspaces-common": "^4.3.18"
}
},
"node_modules/@tagspaces/tagspaces-md": {
diff --git a/package.json b/package.json
index 1b8fb9aed..d4b0cfae2 100644
--- a/package.json
+++ b/package.json
@@ -133,6 +133,7 @@
"test-clone-data": "rimraf tests/testdata && git clone https://github.com/tagspaces/testdata tests/testdata",
"test-playwright": "npm run test-refresh-data && cross-env npx playwright test --config ./playwright.config.js -g '^(?!.*\\b_pro\\b).*\\belectron\\b.*'",
"test-playwright-pro": "npm run test-refresh-data && cross-env npx playwright test --config ./playwright.config.js -g '/\\belectron\\b/'",
+ "test-playwright-minio": "npm run test-refresh-data && cross-env npx playwright test --config ./playwright.config.minio.js -g '/\\bminio\\b/'",
"test-playwright-web": "npm run test-refresh-data && cross-env npx playwright test --config ./playwright.config.web.js -g '/\\bweb\\b/'",
"test-playwright-web-headless": "npm run test-refresh-data && cross-env HEADLESS_MODE=true npx playwright test --config ./playwright.config.web.js -g '/\\bweb\\b/'",
"test-pw-web-browsers": "npm run test-refresh-data && cross-env DEBUG=pw:api npx playwright test --config ./playwright.config.web.browsers.js -g '/\\bweb\\b/'",
@@ -159,10 +160,10 @@
"@mui/lab": "5.0.0-alpha.170",
"@mui/material": "^5.15.19",
"@mui/x-date-pickers": "^5.0.20",
- "@tagspaces/tagspaces-common": "4.3.16",
- "@tagspaces/tagspaces-common-aws3": "4.3.16",
- "@tagspaces/tagspaces-common-cordova": "4.3.16",
- "@tagspaces/tagspaces-indexer": "4.3.16",
+ "@tagspaces/tagspaces-common": "4.3.18",
+ "@tagspaces/tagspaces-common-aws3": "4.3.18",
+ "@tagspaces/tagspaces-common-cordova": "4.3.18",
+ "@tagspaces/tagspaces-indexer": "4.3.18",
"@tagspaces/tagspaces-md": "4.3.13",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
diff --git a/release/app/package-lock.json b/release/app/package-lock.json
index b2843224c..3edae1e0e 100644
--- a/release/app/package-lock.json
+++ b/release/app/package-lock.json
@@ -1,19 +1,19 @@
{
"name": "tagspaces",
- "version": "5.8.4",
+ "version": "5.8.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "tagspaces",
- "version": "5.8.4",
+ "version": "5.8.5",
"hasInstallScript": true,
"license": "AGPL-3.0",
"dependencies": {
"@elife/pm2": "3.6.1",
"@tagspaces/extensions": "1.0.115",
- "@tagspaces/tagspaces-common-node": "4.3.16",
- "@tagspaces/tagspaces-ws": "4.3.17",
+ "@tagspaces/tagspaces-common-node": "4.3.18",
+ "@tagspaces/tagspaces-ws": "4.3.18",
"sharp": "0.32.6",
"ws": "8.16.0"
},
@@ -43,9 +43,9 @@
}
},
"node_modules/@tagspaces/tagspaces-common": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.3.16.tgz",
- "integrity": "sha512-73qy6kfclmG/u6ZcyC6esUvKR+GME9jiEDmaRh3sMC2id318+DygDirbagIjurwMFLaUChd+Yabs36gthao5sQ==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.3.18.tgz",
+ "integrity": "sha512-Plw8h2lXzzFL37l8tlH91YaC/5Avh/bVMMrllDQT+0B5yN7xkCxa999G64H7uR22WSo5hIJrnF+3kAuDTFWM7w==",
"dependencies": {
"dotenv": "^16.0.2",
"picomatch": "^3.0.1",
@@ -53,11 +53,11 @@
}
},
"node_modules/@tagspaces/tagspaces-common-node": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.3.16.tgz",
- "integrity": "sha512-l5mC680OjzTszOQL2isnBqPmQ6UB6TZwb40phhWHP3rONGxSPuvJdmtfmAZHkXxQmAGNjBAj5oiMuf56emkZSg==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.3.18.tgz",
+ "integrity": "sha512-bMCkbs58Os8vIns/370tDVwJSgUwCq+2V5+MWUABK5vL4y+bmcxwjAJMF2QsKAjnpMgTcqPBMu1yVoNus3aD6A==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.3.16",
+ "@tagspaces/tagspaces-common": "^4.3.18",
"adm-zip": "0.5.10",
"fs-extra": "^10.0.0",
"klaw": "^4.1.0",
@@ -80,23 +80,23 @@
}
},
"node_modules/@tagspaces/tagspaces-workers": {
- "version": "4.3.17",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.3.17.tgz",
- "integrity": "sha512-3rDBJ1rOWrwLDVgsipv9i3HrLILl0LBoSMScK6B4uqIH8UU87NM+N4vbkukTM5MrsFNkdY8qWkC3IQo57nwVdw==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.3.18.tgz",
+ "integrity": "sha512-GwFnJBN8XIcmzd/uDk731+3boslgC2rHDSLkwRjHRuUOGFDeip41oEIGsg+OvBVdwcAgXLsMmF9yef0Kb9TLPw==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.3.16",
- "@tagspaces/tagspaces-common-node": "^4.3.16",
+ "@tagspaces/tagspaces-common": "^4.3.18",
+ "@tagspaces/tagspaces-common-node": "^4.3.18",
"@tagspaces/tagspaces-platforms": "^4.3.2",
"@tagspaces/tagspaces-thumbgen-image": "^4.2.3",
"fswin": "^3.24.524"
}
},
"node_modules/@tagspaces/tagspaces-ws": {
- "version": "4.3.17",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.3.17.tgz",
- "integrity": "sha512-gUOM/xgdjDMmpxzxWWh1AyQwjEFSrrU7wInwiIQLoiC4QmN5r1Mi9P5PEcaiDVHXgzIk5wjwIYgFsEvGRqCQEA==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.3.18.tgz",
+ "integrity": "sha512-fYNoUfLzA7844mfO5LSvtb+lox9GrQBVsi8yaqnGmSuqwnWdPEBIj5pDlMMbX0f5tSJedrlODxjGIyBVvjtWdw==",
"dependencies": {
- "@tagspaces/tagspaces-workers": "^4.3.17",
+ "@tagspaces/tagspaces-workers": "^4.3.18",
"find-free-ports": "^3.1.1",
"jsonwebtoken": "^8.5.1",
"ws": "^8.15.1"
@@ -1138,9 +1138,9 @@
}
},
"@tagspaces/tagspaces-common": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.3.16.tgz",
- "integrity": "sha512-73qy6kfclmG/u6ZcyC6esUvKR+GME9jiEDmaRh3sMC2id318+DygDirbagIjurwMFLaUChd+Yabs36gthao5sQ==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.3.18.tgz",
+ "integrity": "sha512-Plw8h2lXzzFL37l8tlH91YaC/5Avh/bVMMrllDQT+0B5yN7xkCxa999G64H7uR22WSo5hIJrnF+3kAuDTFWM7w==",
"requires": {
"dotenv": "^16.0.2",
"picomatch": "^3.0.1",
@@ -1148,11 +1148,11 @@
}
},
"@tagspaces/tagspaces-common-node": {
- "version": "4.3.16",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.3.16.tgz",
- "integrity": "sha512-l5mC680OjzTszOQL2isnBqPmQ6UB6TZwb40phhWHP3rONGxSPuvJdmtfmAZHkXxQmAGNjBAj5oiMuf56emkZSg==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.3.18.tgz",
+ "integrity": "sha512-bMCkbs58Os8vIns/370tDVwJSgUwCq+2V5+MWUABK5vL4y+bmcxwjAJMF2QsKAjnpMgTcqPBMu1yVoNus3aD6A==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.3.16",
+ "@tagspaces/tagspaces-common": "^4.3.18",
"adm-zip": "0.5.10",
"fs-extra": "^10.0.0",
"klaw": "^4.1.0",
@@ -1174,23 +1174,23 @@
}
},
"@tagspaces/tagspaces-workers": {
- "version": "4.3.17",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.3.17.tgz",
- "integrity": "sha512-3rDBJ1rOWrwLDVgsipv9i3HrLILl0LBoSMScK6B4uqIH8UU87NM+N4vbkukTM5MrsFNkdY8qWkC3IQo57nwVdw==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.3.18.tgz",
+ "integrity": "sha512-GwFnJBN8XIcmzd/uDk731+3boslgC2rHDSLkwRjHRuUOGFDeip41oEIGsg+OvBVdwcAgXLsMmF9yef0Kb9TLPw==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.3.16",
- "@tagspaces/tagspaces-common-node": "^4.3.16",
+ "@tagspaces/tagspaces-common": "^4.3.18",
+ "@tagspaces/tagspaces-common-node": "^4.3.18",
"@tagspaces/tagspaces-platforms": "^4.3.2",
"@tagspaces/tagspaces-thumbgen-image": "^4.2.3",
"fswin": "^3.24.524"
}
},
"@tagspaces/tagspaces-ws": {
- "version": "4.3.17",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.3.17.tgz",
- "integrity": "sha512-gUOM/xgdjDMmpxzxWWh1AyQwjEFSrrU7wInwiIQLoiC4QmN5r1Mi9P5PEcaiDVHXgzIk5wjwIYgFsEvGRqCQEA==",
+ "version": "4.3.18",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.3.18.tgz",
+ "integrity": "sha512-fYNoUfLzA7844mfO5LSvtb+lox9GrQBVsi8yaqnGmSuqwnWdPEBIj5pDlMMbX0f5tSJedrlODxjGIyBVvjtWdw==",
"requires": {
- "@tagspaces/tagspaces-workers": "^4.3.17",
+ "@tagspaces/tagspaces-workers": "^4.3.18",
"find-free-ports": "^3.1.1",
"jsonwebtoken": "^8.5.1",
"ws": "^8.15.1"
diff --git a/release/app/package.json b/release/app/package.json
index 7b5363928..4c364ec59 100644
--- a/release/app/package.json
+++ b/release/app/package.json
@@ -19,8 +19,8 @@
"dependencies": {
"@elife/pm2": "3.6.1",
"@tagspaces/extensions": "1.0.115",
- "@tagspaces/tagspaces-common-node": "4.3.16",
- "@tagspaces/tagspaces-ws": "4.3.17",
+ "@tagspaces/tagspaces-common-node": "4.3.18",
+ "@tagspaces/tagspaces-ws": "4.3.18",
"sharp": "0.32.6",
"ws": "8.16.0"
},
diff --git a/scripts/extconfig-objectstore-location.js b/scripts/extconfig-objectstore-location.js
new file mode 100644
index 000000000..d51ca2882
--- /dev/null
+++ b/scripts/extconfig-objectstore-location.js
@@ -0,0 +1,41 @@
+window.ExtIsFirstRun = false;
+window.ExtCheckForUpdatesOnStartup = false;
+window.ExtUseGenerateThumbnails = true;
+window.ExtLocationsReadOnly = false;
+window.ExtSaveLocationsInBrowser = true;
+window.ExtLocations = [
+ {
+ uuid: '40565f09-c7fd-2333-fc67-a75db27rt5ba', // an unique id of the location
+ type: '1', // 1 defines the locations a cloud based
+ name: 'supported-filestypes-s3', // the name of the location
+ path: '', // the path to sub folder in the location
+ endpointURL: 'http://127.0.0.1:9000',
+ accessKeyId: 'minioadmin', // the access key of the user
+ secretAccessKey: 'minioadmin', // the secret case of the user
+ bucketName: 'supported-filestypes', // the name of the S3 bucket
+ region: '', // the AWS region
+ isDefault: true, // if true this location will be loaded by the application start
+ isReadOnly: false, // if true the user interface of the application turns to read-only mode
+ disableIndexing: false, // if true the search index will be persisted and loaded by default on location opening
+ fullTextIndex: false, // activated the full-text search for TXT, MD and HTML files
+ watchForChanges: false, // activates the watching for changed files in the current location
+ maxIndexAge: 600000,
+ maxLoops: 2,
+ creationDate: '2024-06-01T08:46:50.449Z',
+ },
+ {
+ uuid: '30565f09-c7fd-2333-fc67-a75db27rt5ba', // an unique id of the location
+ type: '0', // 1 defines the locations a cloud based
+ name: 'supported-filestypes', // the name of the location
+ path: './tests/testdata-tmp/file-structure/supported-filestypes', // the path to sub folder in the location
+ // accessKeyId: 'your_access_key', // the access key of the user
+ // secretAccessKey: 'your_secret_key', // the secret case of the user
+ // bucketName: 'demo-bucket', // the name of the S3 bucket
+ // region: 'eu-central-1', // the AWS region
+ isDefault: false, // if true this location will be loaded by the application start
+ isReadOnly: false, // if true the user interface of the application turns to read-only mode
+ disableIndexing: false, // if true the search index will be persisted and loaded by default on location opening
+ fullTextIndex: false, // activated the full-text search for TXT, MD and HTML files
+ watchForChanges: false, // activates the watching for changed files in the current location
+ },
+];
diff --git a/src/renderer/components/StoredSearches.tsx b/src/renderer/components/StoredSearches.tsx
index 7baad3232..33dc9c1ec 100644
--- a/src/renderer/components/StoredSearches.tsx
+++ b/src/renderer/components/StoredSearches.tsx
@@ -341,7 +341,11 @@ function StoredSearches(props: Props) {
<Grid container direction="row">
<Grid item xs={10} style={{ alignSelf: 'center' }}>
<IconButton
- data-tid="fileOpenHistoryTID"
+ data-tid={
+ props.fileOpenHistory
+ ? 'fileCloseHistoryTID'
+ : 'fileOpenHistoryTID'
+ }
style={{ minWidth: 'auto', padding: 7 }}
onClick={() => props.setFileOpenHistory(!props.fileOpenHistory)}
size="large"
@@ -436,7 +440,11 @@ function StoredSearches(props: Props) {
<Grid container direction="row">
<Grid item xs={10} style={{ alignSelf: 'center' }}>
<IconButton
- data-tid="folderOpenHistoryTID"
+ data-tid={
+ props.folderOpenHistory
+ ? 'folderCloseHistoryTID'
+ : 'folderOpenHistoryTID'
+ }
style={{ minWidth: 'auto', padding: 7 }}
onClick={() =>
props.setFolderOpenHistory(!props.folderOpenHistory)
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
index 267df77d0..baa0a6a60 100644
--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
@@ -575,7 +575,7 @@ function CreateEditLocationDialog(props: Props) {
</InputLabel>
<Select
labelId="locationLabelID"
- id="locationTypeID"
+ data-tid="locationTypeTID"
value={type}
label={t('core:locationType')}
onChange={(event: ChangeEvent<HTMLInputElement>) =>
@@ -583,17 +583,26 @@ function CreateEditLocationDialog(props: Props) {
}
>
{!AppConfig.isWeb && (
- <MenuItem key="TYPE_LOCAL" value={locationType.TYPE_LOCAL}>
+ <MenuItem
+ key="TYPE_LOCAL"
+ value={locationType.TYPE_LOCAL}
+ data-tid="localLocationTID"
+ >
{t('core:localLocation')}
</MenuItem>
)}
- <MenuItem key="TYPE_CLOUD" value={locationType.TYPE_CLOUD}>
+ <MenuItem
+ key="TYPE_CLOUD"
+ value={locationType.TYPE_CLOUD}
+ data-tid="cloudLocationTID"
+ >
{t('core:objectStorage') + ' (AWS, MinIO, Wasabi,...)'}
</MenuItem>
{Pro && devMode && (
<MenuItem
key="TYPE_WEBDAV"
value={locationType.TYPE_WEBDAV}
+ data-tid="webdavLocationTID"
>
{t('core:webdavLocation') + ' (experimental)'}
</MenuItem>
diff --git a/tests/e2e/fileopener.pw.e2e.js b/tests/e2e/fileopener.pw.e2e.js
index d00ce6679..fe8b2e155 100644
--- a/tests/e2e/fileopener.pw.e2e.js
+++ b/tests/e2e/fileopener.pw.e2e.js
@@ -66,7 +66,7 @@ test.beforeEach(async () => {
});
test.describe('TST08 - File folder properties', () => {
- test('TST0801 - Arrow keys select next prev file (keybindings) [web,minio,electron]', async () => {
+ test('TST0801 - Arrow keys select next prev file (keybindings) [web,electron]', async () => {
// open fileProperties
await clickOn(selectorFile);
//Toggle Properties
@@ -87,7 +87,7 @@ test.describe('TST08 - File folder properties', () => {
expect(propsPrevFileName).toBe(firstFileName);
});
- test('TST0802 - Open next file buttons [web,minio,electron]', async () => {
+ test('TST0802 - Open next file buttons [web,electron]', async () => {
// open fileProperties
await clickOn(selectorFile);
//Toggle Properties
@@ -106,7 +106,7 @@ test.describe('TST08 - File folder properties', () => {
expect(secondFileName).toBe(propsNextFileName);
});
- test('TST0803 - Open previous files buttons [web,minio,electron]', async () => {
+ test('TST0803 - Open previous files buttons [web,electron]', async () => {
// open fileProperties
await clickOn(selectorFile);
//Toggle Properties
@@ -127,7 +127,7 @@ test.describe('TST08 - File folder properties', () => {
/**
* full width button not visible on electron (github app size specific)
*/
- test('TST0804 - Open file in full width [web,minio]', async () => {
+ test('TST0804 - Open file in full width [web]', async () => {
//expect.extend(matchers);
//await clickOn('[data-tid=location_supported-filestypes]');
// open fileProperties
@@ -144,7 +144,7 @@ test.describe('TST08 - File folder properties', () => {
// expect(global.client).toHaveSelector('[data-tid=folderContainerTID]');
});
- test('TST0805 - Rename opened file [web,minio,electron]', async () => {
+ test('TST0805 - Rename opened file [web,electron]', async () => {
const fileName = 'sample.svg';
const newTitle = 'renamed.svg';
// set setting PersistTagsInSidecarFile in order to add meta json file
@@ -197,7 +197,7 @@ test.describe('TST08 - File folder properties', () => {
test.skip('TST0806 - Download file [manual]', async () => {});
- test('TST0808 - Add and remove tags to a file (file names) [web,minio,electron]', async () => {
+ test('TST0808 - Add and remove tags to a file (file names) [web,electron]', async () => {
// open fileProperties
const fileName = 'sample.svg';
await openContextEntryMenu(
@@ -209,7 +209,7 @@ test.describe('TST08 - File folder properties', () => {
await AddRemovePropertiesTags(['test-tag1', 'test-tag2']);
});
- test('TST0809 - Add and remove tag to a file (sidecar files) [web,minio,electron]', async () => {
+ test('TST0809 - Add and remove tag to a file (sidecar files) [web,electron]', async () => {
// global.client.setDefaultTimeout(300000);
await setSettings('[data-tid=settingsSetPersistTagsInSidecarFile]', true);
// open fileProperties
@@ -222,7 +222,7 @@ test.describe('TST08 - File folder properties', () => {
await setSettings('[data-tid=settingsSetPersistTagsInSidecarFile]', true);
});
- test('TST0810 - Tag file drag&drop in file opener [web,minio,electron]', async () => {
+ test('TST0810 - Tag file drag&drop in file opener [web,electron]', async () => {
const tagName = 'article';
await clickOn('[data-tid=tagLibrary]');
await dnd(
@@ -255,7 +255,7 @@ test.describe('TST08 - File folder properties', () => {
);
});
- test('TST0811 - Duplicate file [web,minio,electron]', async () => {
+ test('TST0811 - Duplicate file [web,electron]', async () => {
await openContextEntryMenu(selectorFile, 'fileMenuDuplicateFileTID');
await expectElementExist('[data-tid=tagContainer_copy]', true, 5000);
});
@@ -265,7 +265,7 @@ test.describe('TST08 - File folder properties', () => {
/**
* Description is Pro feature (if no Pro editDescription button is disabled)
*/
- test('TST3001 - Description for files [web,minio,electron,_pro]', async () => {
+ test('TST3001 - Description for files [web,electron,_pro]', async () => {
const desc = 'testDescription';
const fileSelector = getGridFileSelector('sample.pdf');
// open fileProperties
@@ -300,7 +300,7 @@ test.describe('TST08 - File folder properties', () => {
/**
* reload file button failed on web windows only but the problem is in test only
*/
- test('TST0812 - Reload file [minio,electron]', async () => {
+ test('TST0812 - Reload file [electron]', async () => {
// open fileProperties
await clickOn(getGridFileSelector('sample.txt'));
//Toggle Properties
@@ -315,7 +315,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,electron]', async () => {
const fileName = 'new_file.svg';
const svg = `<svg
xmlns="http://www.w3.org/2000/svg"
@@ -363,7 +363,7 @@ test.describe('TST08 - File folder properties', () => {
await setSettings('[data-tid=settingsSetPersistTagsInSidecarFile]', true);
});
- test('TST0813a - Delete file and check revisions deleted [web,minio,electron,_pro]', async () => {
+ test('TST0813a - Delete file and check revisions deleted [web,electron,_pro]', async () => {
const fileName = 'sample.txt';
await clickOn(getGridFileSelector(fileName));
await clickOn('[data-tid=fileContainerEditFile]');
@@ -391,7 +391,7 @@ test.describe('TST08 - File folder properties', () => {
* TODO dont work on web tests https://trello.com/c/93iEURf4/731-migrate-fullscreen-to-https-githubcom-snakesilk-react-fullscreen
* dont work on electron Mac https://github.com/microsoft/playwright/issues/1086
*/
- test('TST0814 - Open file fullscreen and exit with close button [minio,electron]', async () => {
+ test('TST0814 - Open file fullscreen and exit with close button [electron]', async () => {
if (global.isWin) {
// open fileProperties
await clickOn(selectorFile);
@@ -423,7 +423,7 @@ test.describe('TST08 - File folder properties', () => {
test.skip('TST0825 - Change folder thumbnail / Reset thumbnail [Pro]', async () => {});
- test('TST0827 - Link for internal sharing + copy [web,minio,electron]', async () => {
+ test('TST0827 - Link for internal sharing + copy [web,electron]', async () => {
const fileName = 'sample.jpg';
await clickOn(getGridFileSelector(fileName));
await expectElementExist('[data-tid=detailsTabTID]', true, 5000);
diff --git a/tests/e2e/folder.pw.e2e.js b/tests/e2e/folder.pw.e2e.js
index 39ab0bc5d..af04ecfd0 100644
--- a/tests/e2e/folder.pw.e2e.js
+++ b/tests/e2e/folder.pw.e2e.js
@@ -59,7 +59,7 @@ test.beforeEach(async () => {
});
test.describe('TST01 - Folder management', () => {
- test('TST0101 - Create subfolder [web,minio,electron]', async () => {
+ test('TST0101 - Create subfolder [web,electron]', async () => {
const testFolder = await createNewDirectory();
await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']');
await global.client.dblclick('[data-tid=fsEntryName_' + testFolder + ']');
@@ -74,7 +74,7 @@ test.describe('TST01 - Folder management', () => {
);
});
- test('TST0102 - Reload folder [web,minio,electron]', async () => {
+ test('TST0102 - Reload folder [web,electron]', async () => {
const testFolder = await createNewDirectory();
await global.client.dblclick('[data-tid=fsEntryName_' + testFolder + ']');
await reloadDirectory();
@@ -86,7 +86,7 @@ test.describe('TST01 - Folder management', () => {
);
});
- test('TST0103 - Rename folder [web,minio,electron]', async () => {
+ test('TST0103 - Rename folder [web,electron]', async () => {
const testFolder = await createNewDirectory();
await global.client.dblclick('[data-tid=fsEntryName_' + testFolder + ']');
const newDirectoryName = await renameFolder();
@@ -108,7 +108,7 @@ test.describe('TST01 - Folder management', () => {
);
});
- test('TST0104 - Delete empty folder by disabled trashcan [web,minio,electron]', async () => {
+ test('TST0104 - Delete empty folder by disabled trashcan [web,electron]', async () => {
// await setSettings('[data-tid=settingsSetUseTrashCan]');
const testFolder = await createNewDirectory();
await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']');
@@ -121,14 +121,14 @@ test.describe('TST01 - Folder management', () => {
);
});
- test('TST0105 - Open subfolder [web,minio,electron]', async () => {
+ test('TST0105 - Open subfolder [web,electron]', async () => {
await global.client.dblclick(
'[data-tid=fsEntryName_' + emptyFolderName + ']',
);
await expectElementExist(selectorFile, false, 5000);
});
- test('TST0106 - Show folder tags [web,minio,electron]', async () => {
+ test('TST0106 - Show folder tags [web,electron]', async () => {
await openContextEntryMenu(
'[data-tid=fsEntryName_empty_folder]',
'showProperties',
@@ -149,7 +149,7 @@ test.describe('TST01 - Folder management', () => {
test.skip('TST0107 - Show in file manager [manual]', async () => {});
- test('TST0108 - Move folder [web,minio,electron]', async () => {
+ test('TST0108 - Move folder [web,electron]', async () => {
await createFile('file_to_move.txt', 'testing file content');
await openContextEntryMenu(
'[data-tid=fsEntryName_empty_folder]',
@@ -173,7 +173,7 @@ test.describe('TST01 - Folder management', () => {
await testDataRefresh();
});
- test('TST0109 - Copy folder [web,minio,electron]', async () => {
+ test('TST0109 - Copy folder [web,electron]', async () => {
await createFile('file_to_copy.txt', 'testing file content');
await openContextEntryMenu(
'[data-tid=fsEntryName_empty_folder]',
@@ -193,13 +193,13 @@ test.describe('TST01 - Folder management', () => {
await testDataRefresh();
});
- test('TST0110 - Tag folder [web,minio,electron]', async () => {
+ test('TST0110 - Tag folder [web,electron]', async () => {
await clickOn('[data-tid=fsEntryName_empty_folder]');
await AddRemoveTagsToSelectedFiles('grid', ['test-tag1']);
await expectElementExist('[data-tid=tagContainer_test-tag1]', true, 5000);
});
- test('TST0111 - Open folder properties [web,minio,electron]', async () => {
+ test('TST0111 - Open folder properties [web,electron]', async () => {
await openContextEntryMenu(
'[data-tid=fsEntryName_empty_folder]',
'showProperties',
@@ -212,7 +212,7 @@ test.describe('TST01 - Folder management', () => {
expect(divText).toEqual('empty_folder');*/
});
- test('TST0112 - Delete non empty folder by disabled trashcan [web,minio,electron]', async () => {
+ test('TST0112 - Delete non empty folder by disabled trashcan [web,electron]', async () => {
await openContextEntryMenu(
'[data-tid=fsEntryName_empty_folder]',
'deleteDirectory',
@@ -227,7 +227,7 @@ test.describe('TST01 - Folder management', () => {
test.skip('TST0113 - Delete not empty folder to trashcan [electron]', async () => {});
- test('TST0114 - Use as thumbnail for parent folder [web,minio,electron,_pro]', async () => {
+ test('TST0114 - Use as thumbnail for parent folder [web,electron,_pro]', async () => {
const fileName = 'sample.jpg';
await openContextEntryMenu(
getGridFileSelector(fileName),
@@ -265,7 +265,7 @@ test.describe('TST01 - Folder management', () => {
expect(initScreenshot).toBe(thumbRemovedScreenshot);
});
- test('TST0116 - Switch to Grid Perspective [web,minio,electron]', async () => {
+ test('TST0116 - Switch to Grid Perspective [web,electron]', async () => {
await clickOn('[data-tid=openListPerspective]');
await expectElementExist('[data-tid=listPerspectiveContainer]', true, 5000);
await clickOn('[data-tid=openDefaultPerspective]');
@@ -280,7 +280,7 @@ test.describe('TST01 - Folder management', () => {
await clickOn('[data-tid=closePerspectiveSettingsTID]');
});
- test('TST0117 - Switch to List Perspective [web,minio,electron]', async () => {
+ test('TST0117 - Switch to List Perspective [web,electron]', async () => {
await clickOn('[data-tid=openListPerspective]');
await expectElementExist('[data-tid=gridPerspectiveContainer]', false);
await expectElementExist('[data-tid=listPerspectiveContainer]', true, 5000);
@@ -291,7 +291,7 @@ test.describe('TST01 - Folder management', () => {
);
});
- test('TST0118 - Switch to Gallery Perspective [web,minio,electron,_pro]', async () => {
+ test('TST0118 - Switch to Gallery Perspective [web,electron,_pro]', async () => {
await clickOn('[data-tid=openGalleryPerspective]');
//await clickOn('[data-tid=openGalleryPerspective]');
await expectElementExist(
@@ -302,7 +302,7 @@ test.describe('TST01 - Folder management', () => {
await expectElementExist('[data-tid=perspectiveGalleryHelp]', true, 5000);
});
- test('TST0119 - Switch to Mapique Perspective [web,minio,electron,_pro]', async () => {
+ test('TST0119 - Switch to Mapique Perspective [web,electron,_pro]', async () => {
await clickOn('[data-tid=openMapiquePerspective]');
//await clickOn('[data-tid=openMapiquePerspective]');
await expectElementExist(
@@ -313,7 +313,7 @@ test.describe('TST01 - Folder management', () => {
await expectElementExist('[data-tid=perspectiveMapiqueHelp]', true, 5000);
});
- test('TST0120 - Switch to Kanban Perspective [web,minio,electron,_pro]', async () => {
+ test('TST0120 - Switch to Kanban Perspective [web,electron,_pro]', async () => {
await clickOn('[data-tid=openKanbanPerspective]');
//await clickOn('[data-tid=openKanbanPerspective]');
await expectElementExist(
diff --git a/tests/e2e/folderprops.pw.e2e.js b/tests/e2e/folderprops.pw.e2e.js
index b9ce90abf..9f68d8250 100644
--- a/tests/e2e/folderprops.pw.e2e.js
+++ b/tests/e2e/folderprops.pw.e2e.js
@@ -60,7 +60,7 @@ test.beforeEach(async () => {
});
test.describe('TST02 - Folder properties', () => {
- test('TST0201 - Open in main area [web,minio,electron]', async () => {
+ test('TST0201 - Open in main area [web,electron]', async () => {
const testFile = 'file_in_empty_folder.txt';
await createFile(testFile);
await clickOn('[data-tid=propsActionsMenuTID]');
@@ -68,7 +68,7 @@ test.describe('TST02 - Folder properties', () => {
await expectElementExist(getGridFileSelector(testFile), true, 5000);
});
- test('TST0204 - Reload folder from toolbar [web,minio,electron]', async () => {
+ test('TST0204 - Reload folder from toolbar [web,electron]', async () => {
let propsTags = await getPropertiesTags();
expect(propsTags).toHaveLength(0);
const tagTitle = 'test-tag';
@@ -114,7 +114,7 @@ test.describe('TST02 - Folder properties', () => {
);
});
- test('TST0205 - Delete folder from toolbar [web,minio,electron]', async () => {
+ test('TST0205 - Delete folder from toolbar [web,electron]', async () => {
await clickOn('[data-tid=propsActionsMenuTID]');
await clickOn('[data-tid=deleteFolderTID]');
await clickOn('[data-tid=confirmSaveBeforeCloseDialog]');
@@ -123,7 +123,7 @@ test.describe('TST02 - Folder properties', () => {
await testDataRefresh();
});
- test('TST0206 - Rename folder [web,minio,electron]', async () => {
+ test('TST0206 - Rename folder [web,electron]', async () => {
const newTile = 'folderRenamed';
const propsFolderName = await getPropertiesFileName();
@@ -152,7 +152,7 @@ test.describe('TST02 - Folder properties', () => {
expect(propsOldFileName).toEqual(propsFolderName);*/
});
- test('TST0207 - Move folder [web,minio,electron]', async () => {
+ test('TST0207 - Move folder [web,electron]', async () => {
const newFolder = await createNewDirectory('targetFolder');
// select folder to move
await clickOn(getGridFileSelector('empty_folder'));
@@ -167,10 +167,10 @@ test.describe('TST02 - Folder properties', () => {
await testDataRefresh();
});
- test('TST0210 - Add and remove tag to folder with dropdown menu [web,minio,electron]', async () => {
+ test('TST0210 - Add and remove tag to folder with dropdown menu [web,electron]', async () => {
await AddRemovePropertiesTags(['test-tag1', 'test-tag2']);
});
- test('TST0211 - Add tag folder with DnD from tag library [web,minio,electron]', async () => {
+ test('TST0211 - Add tag folder with DnD from tag library [web,electron]', async () => {
const tagName = 'article';
await clickOn('[data-tid=tagLibrary]');
await dnd(
@@ -188,7 +188,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,electron,_pro]', async () => {
const desc = 'test description';
await clickOn('[data-tid=descriptionTabTID]');
@@ -213,7 +213,7 @@ test.describe('TST02 - Folder properties', () => {
);
});
- test('TST0215 - Link for internal sharing + copy [web,minio,electron]', async () => {
+ test('TST0215 - Link for internal sharing + copy [web,electron]', async () => {
// await clickOn('[data-tid=copyLinkToClipboardTID]');
const sharingLink = await global.client.waitForSelector(
'[data-tid=sharingLinkTID] input',
@@ -246,7 +246,7 @@ test.describe('TST02 - Folder properties', () => {
*/
});
- test('TST0216 - Set gallery perspective as default for folder [web,minio,electron,_pro]', async () => {
+ test('TST0216 - Set gallery perspective as default for folder [web,electron,_pro]', async () => {
const fileName = 'sample.jpg';
await openContextEntryMenu(
getGridFileSelector(fileName),
@@ -286,7 +286,7 @@ test.describe('TST02 - Folder properties', () => {
await expectElementExist('[data-tid=gridperspectiveToolbar]', true, 5000);
});
- test('TST0218 - Set and remove predefined background gradient for folder [web,minio,electron,_pro]', async () => {
+ test('TST0218 - Set and remove predefined background gradient for folder [web,electron,_pro]', async () => {
await openContextEntryMenu(
getGridFileSelector('empty_folder'),
'showProperties',
@@ -316,7 +316,7 @@ test.describe('TST02 - Folder properties', () => {
expect(initScreenshot).toBe(bgnRemovedScreenshot);
});
- test('TST0219 - Set and remove predefined folder thumbnail [web,minio,electron,_pro]', async () => {
+ test('TST0219 - Set and remove predefined folder thumbnail [web,electron,_pro]', async () => {
const screenshotSelector = '[data-tid=fsEntryName_empty_folder]'; // > div
await openContextEntryMenu(
getGridFileSelector('empty_folder'),
@@ -349,7 +349,7 @@ test.describe('TST02 - Folder properties', () => {
//todo check if tsb.jpg not exist
});
- test('TST0220 - Set and remove predefined folder background [web,minio,electron,_pro]', async () => {
+ test('TST0220 - Set and remove predefined folder background [web,electron,_pro]', async () => {
await openContextEntryMenu(
getGridFileSelector('empty_folder'),
'showProperties',
diff --git a/tests/e2e/general.pw.e2e.js b/tests/e2e/general.pw.e2e.js
index 5fdcc3e30..d7fa84c7a 100644
--- a/tests/e2e/general.pw.e2e.js
+++ b/tests/e2e/general.pw.e2e.js
@@ -25,7 +25,7 @@ import {
isDisplayed,
} from './general.helpers';
import { startTestingApp, stopApp, testDataRefresh } from './hook';
-import { clearDataStorage } from './welcome.helpers';
+import { clearDataStorage, closeWelcomePlaywright } from './welcome.helpers';
import { openContextEntryMenu } from './test-utils';
export const firstFile = '/span';
@@ -37,7 +37,7 @@ const subFolderThumbnailsPath = defaultLocationPath + '/thumbnails';
const testFolder = 'testFolder';
test.beforeAll(async () => {
- await startTestingApp('extconfig.js');
+ await startTestingApp(global.isMinio ? undefined : 'extconfig.js');
// await clearDataStorage();
});
@@ -55,6 +55,7 @@ test.afterEach(async ({ page }, testInfo) => {
test.beforeEach(async () => {
if (global.isMinio) {
+ await closeWelcomePlaywright();
await createPwMinioLocation('', defaultLocationName, true);
} else {
await createPwLocation(defaultLocationPath, defaultLocationName, true);
@@ -65,7 +66,7 @@ test.beforeEach(async () => {
});
test.describe('TST51 - Perspective Grid', () => {
- test('TST0501 - Create HTML file [electron,web]', async () => {
+ test('TST0501 - Create HTML file [web,electron,minio]', async () => {
// await global.client.waitForLoadState('networkidle');
await createNewDirectory();
await expectElementExist(
@@ -91,7 +92,7 @@ test.describe('TST51 - Perspective Grid', () => {
// await takeScreenshot('TST0501 after deleteDirectory');
});
- test('TST0502 - Create MD file [electron,web]', async () => {
+ test('TST0502 - Create MD file [web,electron,minio]', async () => {
await createNewDirectory();
await expectElementExist(
'[data-tid=fsEntryName_' + testFolder + ']',
@@ -116,7 +117,7 @@ test.describe('TST51 - Perspective Grid', () => {
// await takeScreenshot('TST0502 after deleteDirectory');
});
- test('TST0503 - Create TEXT file [electron,web]', async () => {
+ test('TST0503 - Create TEXT file [web,electron,minio]', async () => {
await createNewDirectory();
await expectElementExist(
'[data-tid=fsEntryName_' + testFolder + ']',
@@ -141,9 +142,13 @@ test.describe('TST51 - Perspective Grid', () => {
// await takeScreenshot('TST0503 after deleteDirectory');
});
- test('TST0510 - Generate thumbnail from Images [electron]', async () => {
+ test('TST0510 - Generate thumbnail from Images [electron,minio]', async () => {
+ const filtered = ['ico', 'tiff', 'tif'];
+ if (global.isMinio) {
+ filtered.push('svg');
+ }
const metaFiles = AppConfig.ThumbGenSupportedFileTypes.image
- .filter((ext) => ext !== 'ico' && ext !== 'tiff' && ext !== 'tif') // ico file thumbnail generation not work TODO in not PRO version tiff tif is not generated in tests environment only
+ .filter((ext) => !filtered.includes(ext)) // ico file thumbnail generation not work TODO in not PRO version tiff tif is not generated in tests environment only
.map((imgExt) => 'sample.' + imgExt + '.jpg');
await expectMetaFilesExist(metaFiles);
@@ -167,7 +172,7 @@ test.describe('TST51 - Perspective Grid', () => {
expect(latExists).toBeTruthy();
});
- test('TST0511 - Generate thumbnail from Videos [electron]', async () => {
+ test('TST0511 - Generate thumbnail from Videos [electron,minio]', async () => {
if (global.isWin) {
// todo in github thumbnails not generated for videos on MacOS
const metaFiles = AppConfig.ThumbGenSupportedFileTypes.video.map(
@@ -177,7 +182,7 @@ test.describe('TST51 - Perspective Grid', () => {
}
});
- test('TST0516 - Generate thumbnail from PDF [electron,_pro]', async () => {
+ test('TST0516 - Generate thumbnail from PDF [electron]', async () => {
await expectMetaFilesExist(['sample.pdf.jpg']);
});
@@ -193,20 +198,20 @@ test.describe('TST51 - Perspective Grid', () => {
await expectMetaFilesExist(['sample.tiff.jpg']);
});
- test.skip('TST0520 - Generate thumbnail from PSD [electron,_pro]', async () => {
+ test.skip('TST0520 - Generate thumbnail from PSD [electron,minio,_pro]', async () => {
// TODO fix
await expectMetaFilesExist(['sample.psd.jpg']);
});
- test('TST0522 - Generate thumbnail from URL [electron,_pro]', async () => {
+ test('TST0522 - Generate thumbnail from URL [electron,minio,_pro]', async () => {
await expectMetaFilesExist(['sample.url.jpg']);
});
- test('TST0523 - Generate thumbnail from HTML [electron,_pro]', async () => {
+ test('TST0523 - Generate thumbnail from HTML [electron,minio,_pro]', async () => {
await expectMetaFilesExist(['sample.html.jpg']);
});
- test('TST0524 - Generate thumbnail from TXT,MD [electron,_pro]', async () => {
+ test('TST0524 - Generate thumbnail from TXT,MD [electron,minio,_pro]', async () => {
// MD thumbs generation is stopped
await expectMetaFilesExist(['sample.txt.jpg']);
});
diff --git a/tests/e2e/location.helpers.js b/tests/e2e/location.helpers.js
index e941f542c..42aa505bf 100644
--- a/tests/e2e/location.helpers.js
+++ b/tests/e2e/location.helpers.js
@@ -31,28 +31,40 @@ export async function createPwMinioLocation(
if (locationName !== lastLocationTID) {
await clickOn('[data-tid=locationManagerMenu]');
await clickOn('[data-tid=locationManagerMenuCreateLocation]');
+ await clickOn('[data-tid=locationTypeTID]');
+ await clickOn('[data-tid=cloudLocationTID]');
//await clickOn('[data-tid=createNewLocation]', { timeout: 35000 });
// if (global.isMinio) {
// await clickOn('[data-tid=objectStorageLocation]');
// }
// SET LOCATION NAME
- await global.client.fill(
+ /*await global.client.fill(
'[data-tid=locationName] input',
locationName || 'Test Location' + new Date().getTime(),
+ );*/
+ await setInputKeys(
+ 'locationName',
+ locationName || 'Test Location' + new Date().getTime(),
+ 20,
);
- await global.client.fill('[data-tid=locationPath] input', locationPath);
- await global.client.fill('[data-tid=accessKeyId] input', minioAccessKey);
- await global.client.fill(
+ await setInputKeys('locationPath', locationPath, 20);
+ //await global.client.fill('[data-tid=locationPath] input', locationPath);
+ await setInputKeys('accessKeyId', minioAccessKey, 20);
+ //await global.client.fill('[data-tid=accessKeyId] input', minioAccessKey);
+ await setInputKeys('secretAccessKey', minioSecretAccessKey, 20);
+ /*await global.client.fill(
'[data-tid=secretAccessKey] input',
minioSecretAccessKey,
- );
- await global.client.fill('[data-tid=bucketName] input', locationName);
- await global.client.fill('[data-tid=endpointURL] input', minioEndpointURL);
+ );*/
+ await setInputKeys('bucketName', locationName, 20);
+ //await global.client.fill('[data-tid=bucketName] input', locationName);
+ await setInputKeys('endpointURL', minioEndpointURL, 20);
+ //await global.client.fill('[data-tid=endpointURL] input', minioEndpointURL);
if (isDefault) {
await clickOn('[data-tid=switchAdvancedModeTID]');
- await clickOn('[data-tid=locationIsDefault]');
+ await global.client.check('[data-tid=locationIsDefault] input');
}
await clickOn('[data-tid=confirmLocationCreation]');
}
diff --git a/tests/e2e/objectstore.pw.e2e.js b/tests/e2e/objectstore.pw.e2e.js
new file mode 100644
index 000000000..74cba4187
--- /dev/null
+++ b/tests/e2e/objectstore.pw.e2e.js
@@ -0,0 +1,84 @@
+/*
+ * Copyright (c) 2016-present - TagSpaces UG (Haftungsbeschraenkt). All rights reserved.
+ */
+import { expect, test } from '@playwright/test';
+import {
+ defaultLocationPath,
+ defaultLocationName,
+ createPwMinioLocation,
+ createPwLocation,
+} from './location.helpers';
+import {
+ clickOn,
+ createNewDirectory,
+ expectElementExist,
+ getGridFileSelector,
+ rightClickOn,
+ setInputKeys,
+ takeScreenshot,
+} from './general.helpers';
+import { startTestingApp, stopApp, testDataRefresh } from './hook';
+import { createSavedSearch, searchEngine } from './search.helpers';
+import { openContextEntryMenu } from './test-utils';
+import { dataTidFormat } from '../../src/renderer/services/test';
+import { clearDataStorage, closeWelcomePlaywright } from './welcome.helpers';
+import { startMinio } from '../setup-functions';
+
+test.beforeAll(async () => {
+ await startTestingApp('extconfig-objectstore-location.js');
+ //await clearDataStorage();
+});
+
+test.afterAll(async () => {
+ await stopApp();
+ await testDataRefresh();
+});
+
+test.afterEach(async ({ page }, testInfo) => {
+ if (testInfo.status !== testInfo.expectedStatus) {
+ await takeScreenshot(testInfo);
+ }
+ await clearDataStorage();
+});
+
+test.beforeEach(async () => {
+ await closeWelcomePlaywright();
+ await clickOn('[data-tid=locationManager]');
+ await clickOn('[data-tid=location_' + defaultLocationName + '-s3]');
+});
+
+test.describe('TST09 - ObjectStore location', () => {
+ test('TST0917 - Create, open and remove bookmark to S3 file in properties [web,minio,_pro]', async () => {
+ const bookmarkFileTitle = 'sample.txt';
+ const bookmarkFileTid = dataTidFormat(bookmarkFileTitle);
+ await openContextEntryMenu(
+ getGridFileSelector(bookmarkFileTitle), // todo rethink selector here contain dot
+ 'fileMenuOpenFile',
+ );
+
+ // Create
+ await clickOn('[data-tid=toggleBookmarkTID]');
+ await clickOn('[data-tid=fileContainerCloseOpenedFile]');
+
+ await clickOn('[data-tid=location_' + defaultLocationName + ']');
+
+ // Open
+ await clickOn('[data-tid=quickAccessButton]');
+ await expectElementExist(
+ '[data-tid=tsBookmarksTID' + bookmarkFileTid + ']',
+ );
+ await clickOn('[data-tid=tsBookmarksTID' + bookmarkFileTid + ']');
+ await expectElementExist('[data-tid=OpenedTID' + bookmarkFileTid + ']');
+
+ //Delete
+ await clickOn('[data-tid=toggleBookmarkTID]');
+
+ //await clickOn('[data-tid=BookmarksMenuTID]');
+ //await clickOn('[data-tid=refreshBookmarksTID]');
+
+ await expectElementExist(
+ '[data-tid=tsBookmarksTID' + bookmarkFileTid + ']',
+ false,
+ );
+ });
+});
diff --git a/tests/e2e/perspective-gallery.pw.e2e.js b/tests/e2e/perspective-gallery.pw.e2e.js
index b51585c29..cb34fc648 100644
--- a/tests/e2e/perspective-gallery.pw.e2e.js
+++ b/tests/e2e/perspective-gallery.pw.e2e.js
@@ -48,7 +48,7 @@ test.beforeEach(async () => {
});
test.describe('TST51 - Perspective openGalleryPerspective', () => {
- test('TST5120 - prev/next button [web,minio,electron,_pro]', async () => {
+ test('TST5120 - prev/next button [web,electron,_pro]', async () => {
const fileName = 'sample.svg';
const nextFileName = 'sample.tga';
await clickOn(getGridFileSelector(fileName));
diff --git a/tests/e2e/perspective-grid-right-button.pw.e2e.js b/tests/e2e/perspective-grid-right-button.pw.e2e.js
index dbf402f71..405b20ee1 100644
--- a/tests/e2e/perspective-grid-right-button.pw.e2e.js
+++ b/tests/e2e/perspective-grid-right-button.pw.e2e.js
@@ -71,7 +71,7 @@ test.beforeEach(async () => {
// Test the functionality of the right button on a file on a grid perspective table
// Scenarios for right button on a file
test.describe('TST50** - Right button on a file', () => {
- test('TST5016 - Open file [web,minio,electron]', async () => {
+ test('TST5016 - Open file [web,electron]', async () => {
// await searchEngine('txt');
await openContextEntryMenu(
getGridFileSelector('sample.txt'), // perspectiveGridTable + firstFile,
@@ -118,7 +118,7 @@ test.describe('TST50** - Right button on a file', () => {
expect(containTID).toBe(true);*/
});
- test('TST5017 - Rename file and check thumbnail exist [web,minio,electron]', async () => {
+ test('TST5017 - Rename file and check thumbnail exist [web,electron]', async () => {
const newFileName = 'newFileName';
const fileExtension = '.jpeg';
// await searchEngine('txt');
@@ -150,7 +150,7 @@ test.describe('TST50** - Right button on a file', () => {
await expectMetaFilesExist([oldName + '.jpg']);
});
- test('TST5018 - Delete file [web,minio,electron]', async () => {
+ test('TST5018 - Delete file [web,electron]', async () => {
// await createTxtFile();
// await searchEngine('note'); //select new created file - note[date_created].txt
const fileName = 'sample.html'; // await getGridFileName(-1);
@@ -164,7 +164,7 @@ test.describe('TST50** - Right button on a file', () => {
expect(firstFileName).toBe(undefined); */
});
- test('TST5019 - Rename tag in file [web,minio,electron]', async () => {
+ test('TST5019 - Rename tag in file [web,electron]', async () => {
// await searchEngine('desktop');
// Select file
await clickOn(selectorFile);
@@ -214,7 +214,7 @@ test.describe('TST50** - Right button on a file', () => {
);*/
});
- test('TST5023 - Remove tag from file (tag menu) [web,minio,electron]', async () => {
+ test('TST5023 - Remove tag from file (tag menu) [web,electron]', async () => {
// await searchEngine('desktop');
// select file
await clickOn(selectorFile);
@@ -284,7 +284,7 @@ test.describe('TST50** - Right button on a file', () => {
await AddRemoveTagsToSelectedFiles([testTagName], false); */
});
- test('TST5025 - Add - Remove tags (file menu) [web,minio,electron]', async () => {
+ test('TST5025 - Add - Remove tags (file menu) [web,electron]', async () => {
// await searchEngine('desktop');
const fileName = 'sample';
const fileExt = 'desktop';
@@ -328,7 +328,7 @@ test.describe('TST50** - Right button on a file', () => {
// check parent directory
});
- test('TST5027 - Open containing folder [web,minio,electron]', async () => {
+ test('TST5027 - Open containing folder [web,electron]', async () => {
if (!global.isMinio) {
// Show in File Manager option is missing for Minio Location
await searchEngine('txt');
@@ -354,7 +354,7 @@ test.describe('TST50** - Right button on a file', () => {
/**
* todo web: io-actions.ts:120 Moving files failed with Renaming file failedSignatureDoesNotMatch
*/
- test('TST5028 - Move - Copy file (file menu) [minio,electron]', async () => {
+ test('TST5028 - Move - Copy file (file menu) [electron]', async () => {
// Move file in child folder
const fileName = 'sample.pdf';
const folderName = 'empty_folder';
@@ -400,7 +400,7 @@ test.describe('TST50** - Right button on a file', () => {
test.skip('TST5029 - Add file from file manager with dnd [manual]', async () => {});
- test('TST5033 - Open directory (directory menu) [web,minio,electron]', async () => {
+ test('TST5033 - Open directory (directory menu) [web,electron]', async () => {
// open empty_folder
await openContextEntryMenu(selectorFolder, 'openDirectory');
// await global.client.screenshot({ path: 'screenshotTST5033.png' });
@@ -409,7 +409,7 @@ test.describe('TST50** - Right button on a file', () => {
// expect(firstFileName).toBe(undefined); //'sample.eml');
});
- test('TST5034 - Rename directory (directory menu) [web,minio,electron]', async () => {
+ test('TST5034 - Rename directory (directory menu) [web,electron]', async () => {
const newDirName = 'new_dir_name';
await openContextEntryMenu(selectorFolder, 'renameDirectory');
const oldDirName = await setInputKeys('renameEntryDialogInput', newDirName);
@@ -425,7 +425,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,electron]', async () => {
// await setSettings('[data-tid=settingsSetUseTrashCan]');
// await global.client.pause(500);
await global.client.dblclick(selectorFolder);
@@ -443,12 +443,12 @@ test.describe('TST50** - Right button on a file', () => {
// await expectElementExist(selectorFolder, true);
});
- test('TST5036 - Open directory properties (directory menu) [web,minio,electron]', async () => {
+ test('TST5036 - Open directory properties (directory menu) [web,electron]', async () => {
await openContextEntryMenu(selectorFolder, 'showProperties');
await expectElementExist('[data-tid=fileNameProperties]', true, 5000);
});
- test('TST5037 - Show sub folders [web,minio,electron]', async () => {
+ test('TST5037 - Show sub folders [web,electron]', async () => {
// click on hide directories
await setGridOptions('grid', false);
@@ -466,7 +466,7 @@ test.describe('TST50** - Right button on a file', () => {
await expectElementExist(selectorFolder, true);
});
- test.skip('TST5038 - Return directory back [web,minio,electron]', async () => {
+ test.skip('TST5038 - Return directory back [web,electron]', async () => {
// TODO
// expect(received).toBe(expected) // Object.is equality
// Expected: true
@@ -490,7 +490,7 @@ test.describe('TST50** - Right button on a file', () => {
await expectElementExist(selectorFolder);
});
- test('TST5039 - Changing the Perspective View [web,minio,electron]', async () => {
+ test('TST5039 - Changing the Perspective View [web,electron]', async () => {
// await isDisplayed('[data-tid=perspectiveGridFileTable]', true);
// await global.client.screenshot({ path: 'screenshotTST5039.png' });
@@ -520,7 +520,7 @@ test.describe('TST50** - Right button on a file', () => {
);
});
- test('TST5040 - Create file [web,minio,electron]', async () => {
+ test('TST5040 - Create file [web,electron]', async () => {
// Open empty folder
await global.client.dblclick(selectorFolder);
diff --git a/tests/e2e/perspective-grid-sort.pw.e2e.js b/tests/e2e/perspective-grid-sort.pw.e2e.js
index a098e54a0..bbf05f322 100644
--- a/tests/e2e/perspective-grid-sort.pw.e2e.js
+++ b/tests/e2e/perspective-grid-sort.pw.e2e.js
@@ -43,8 +43,8 @@ test.beforeEach(async () => {
});
// Scenarios for sorting files in grid perspective
-test.describe('TST5003 - Testing sort files in the grid perspective [web,minio,electron]', () => {
- test('TST10xx - Sort by name [web,minio,electron]', async () => {
+test.describe('TST5003 - Testing sort files in the grid perspective [web,electron]', () => {
+ test('TST10xx - Sort by name [web,electron]', async () => {
// DESC
await clickOn('[data-tid=gridPerspectiveSortByName]');
let sorted = getDirEntries('byName', false);
@@ -64,7 +64,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective [web,minio,e
}
});
- test('TST10xx - Sort by size [web,minio,electron]', async () => {
+ test('TST10xx - Sort by size [web,electron]', async () => {
await clickOn('[data-tid=gridPerspectiveSortBySize]');
// DESC
let sorted = getDirEntries('byFileSize', true);
@@ -83,7 +83,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective [web,minio,e
}
});
- test('TST10xx - Sort by date [web,minio,electron]', async () => {
+ test('TST10xx - Sort by date [web,electron]', async () => {
await clickOn('[data-tid=gridPerspectiveSortByDate]');
let sorted = getDirEntries('byDateModified', true);
@@ -103,7 +103,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective [web,minio,e
}
});
- test('TST10xx - Sort by extension [web,minio,electron]', async () => {
+ test('TST10xx - Sort by extension [web,electron]', async () => {
await clickOn('[data-tid=gridPerspectiveSortByExt]');
let sorted = getDirEntries('byExtension', true);
for (let i = 0; i < sorted.length; i += 1) {
@@ -120,7 +120,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective [web,minio,e
}
});
- test('TST10xx - Sort by tags [web,minio,electron]', async () => {
+ test('TST10xx - Sort by tags [web,electron]', async () => {
await clickOn('[data-tid=gridPerspectiveSortByFirstTag]');
let sorted = getDirEntries('byFirstTag', true);
for (let i = 0; i < sorted.length; i += 1) {
diff --git a/tests/e2e/perspective-grid.pw.e2e.js b/tests/e2e/perspective-grid.pw.e2e.js
index 3a48d44a0..ab61d83c0 100644
--- a/tests/e2e/perspective-grid.pw.e2e.js
+++ b/tests/e2e/perspective-grid.pw.e2e.js
@@ -65,7 +65,7 @@ test.beforeEach(async () => {
});
test.describe('TST50 - Perspective Grid', () => {
- test('TST5002 - Open file with click [web,minio,electron]', async () => {
+ test('TST5002 - Open file with click [web,electron]', async () => {
// await searchEngine('txt'); //testTestFilename);
const fileName = 'sample.txt';
@@ -80,7 +80,7 @@ test.describe('TST50 - Perspective Grid', () => {
// await checkFilenameForExist(testTestFilename);
});
- test('TST5004 - Select-deselect all files [web,minio,electron]', async () => {
+ test('TST5004 - Select-deselect all files [web,electron]', async () => {
await selectAllFiles();
await expectAllFileSelected(true);
await selectAllFiles();
@@ -88,7 +88,7 @@ test.describe('TST50 - Perspective Grid', () => {
});
// This scenario includes "Add tags" && "Remove tags" to be fulfilled
- test('TST5005 - Add/Remove tags from selected files [web,minio,electron]', async () => {
+ test('TST5005 - Add/Remove tags from selected files [web,electron]', async () => {
let selectedIds = await selectRowFiles([0, 1, 2]);
const tags = ['test-tag1', 'test-tag2'];
@@ -130,7 +130,7 @@ test.describe('TST50 - Perspective Grid', () => {
/**
* todo in [web] its need more time to wait for removed files
*/
- test('TST5007 - Remove all tags from selected files [web,minio,electron]', async () => {
+ test('TST5007 - Remove all tags from selected files [web,electron]', async () => {
const selectedIds = await selectRowFiles([0, 1, 2]);
const tags = ['test-tag1', 'test-tag2', 'test-tag3'];
await AddRemoveTagsToSelectedFiles('grid', tags, true);
@@ -149,7 +149,7 @@ test.describe('TST50 - Perspective Grid', () => {
}
});
- test('TST5008 - Copy file [web,minio,electron]', async () => {
+ test('TST5008 - Copy file [web,electron]', async () => {
const fileName = 'sample.svg';
await clickOn(getGridFileSelector(fileName));
await expectElementExist('[data-tid=detailsTabTID]', true, 5000);
@@ -185,7 +185,7 @@ test.describe('TST50 - Perspective Grid', () => {
test.skip('TST5009 - Copy file on different partition [manual]', async () => {});
- test('TST5010 - Move file [web,minio,electron]', async () => {
+ test('TST5010 - Move file [web,electron]', async () => {
const fileName = 'sample.svg';
//Toggle Properties
await openContextEntryMenu(
@@ -226,7 +226,7 @@ test.describe('TST50 - Perspective Grid', () => {
test.skip('TST5012 - Move file different partition [manual]', async () => {});
- test('TST5013 - Delete files from selection (many files) [web,minio,electron]', async () => {
+ test('TST5013 - Delete files from selection (many files) [web,electron]', async () => {
const selectedIds = await selectRowFiles([0, 1, 2]);
await clickOn('[data-tid=gridPerspectiveDeleteMultipleFiles]');
@@ -244,7 +244,7 @@ test.describe('TST50 - Perspective Grid', () => {
test.skip('TST5015 - Tag file drag&drop in perspective [manual]', async () => {});
- test('TST5048 - prev/next button [web,minio,electron]', async () => {
+ test('TST5048 - prev/next button [web,electron]', async () => {
const fileName = 'sample.svg';
const nextFileName = 'sample.tga';
await clickOn(getGridFileSelector(fileName));
diff --git a/tests/e2e/perspective-kanban.pw.e2e.js b/tests/e2e/perspective-kanban.pw.e2e.js
index 21fadc359..221ae9a4b 100644
--- a/tests/e2e/perspective-kanban.pw.e2e.js
+++ b/tests/e2e/perspective-kanban.pw.e2e.js
@@ -47,7 +47,7 @@ test.beforeEach(async () => {
});
test.describe('TST49 - Perspective KanBan', () => {
- test('TST4909 - move with copy/move file dialog [web,minio,electron,_pro]', async () => {
+ test('TST4909 - move with copy/move file dialog [web,electron,_pro]', async () => {
const fileName = 'sample.bmp';
await openContextEntryMenu(
@@ -64,7 +64,7 @@ test.describe('TST49 - Perspective KanBan', () => {
await expectElementExist(getGridFileSelector(fileName), true);
});
- test('TST4910 - prev/next button [web,minio,electron,_pro]', async () => {
+ test('TST4910 - prev/next button [web,electron,_pro]', async () => {
const fileName = 'sample.3gp';
const nextFileName = 'sample.avif';
await clickOn(getGridFileSelector(fileName));
diff --git a/tests/e2e/quick-access.pw.e2e.js b/tests/e2e/quick-access.pw.e2e.js
index cdcd59494..dc483a1ad 100644
--- a/tests/e2e/quick-access.pw.e2e.js
+++ b/tests/e2e/quick-access.pw.e2e.js
@@ -13,6 +13,7 @@ import {
createNewDirectory,
expectElementExist,
getGridFileSelector,
+ isDisplayed,
rightClickOn,
setInputKeys,
takeScreenshot,
@@ -54,7 +55,7 @@ test.beforeEach(async () => {
});
test.describe('TST09 - Quick access', () => {
- test('TST0901 - Create, rename and delete stored search [electron,_pro]', async () => {
+ test('TST0901 - Create, rename and delete stored search [electron,minio,_pro]', async () => {
const storedSearchTitle = 'jpgSearch';
await createSavedSearch({ title: storedSearchTitle, textQuery: 'jpg' });
//await expectElementExist('[data-tid=quickAccessButton]');
@@ -79,7 +80,7 @@ test.describe('TST09 - Quick access', () => {
);
});
- test('TST0902 - Create, execute and delete stored search [electron,_pro]', async () => {
+ test('TST0902 - Create, execute and delete stored search [electron,minio,_pro]', async () => {
const storedSearchTitle = 'jpgExecutedSearch';
const textQuery = 'jpg';
await createSavedSearch({ title: storedSearchTitle, textQuery });
@@ -102,7 +103,7 @@ test.describe('TST09 - Quick access', () => {
);
});
- test('TST0905 - Create, open and remove bookmark to file in properties [electron,web,_pro]', async () => {
+ test('TST0905 - Create, open and remove bookmark to file in properties [web,minio,electron,_pro]', async () => {
const bookmarkFileTitle = 'sample.txt';
const bookmarkFileTid = dataTidFormat(bookmarkFileTitle);
await openContextEntryMenu(
@@ -127,8 +128,8 @@ test.describe('TST09 - Quick access', () => {
//await clickOn('[data-tid=fileContainerCloseOpenedFile]');
//await clickOn('[id=mobileMenuButton]');
- await clickOn('[data-tid=BookmarksMenuTID]');
- await clickOn('[data-tid=refreshBookmarksTID]');
+ //await clickOn('[data-tid=BookmarksMenuTID]');
+ //await clickOn('[data-tid=refreshBookmarksTID]');
await expectElementExist(
'[data-tid=tsBookmarksTID' + bookmarkFileTid + ']',
@@ -136,7 +137,7 @@ test.describe('TST09 - Quick access', () => {
);
});
- test('TST0906 - Create, open and remove bookmark to folder in quickaccess [electron,web,_pro]', async () => {
+ test('TST0906 - Create, open and remove bookmark to folder in quickaccess [web,minio,electron,_pro]', async () => {
const testFolder = 'empty_folder';
await rightClickOn('[data-tid=fsEntryName_' + testFolder + ']');
await clickOn('[data-tid=showProperties]');
@@ -157,8 +158,8 @@ test.describe('TST09 - Quick access', () => {
//Delete
await clickOn('[data-tid=toggleBookmarkTID]');
- await clickOn('[data-tid=BookmarksMenuTID]');
- await clickOn('[data-tid=refreshBookmarksTID]');
+ //await clickOn('[data-tid=BookmarksMenuTID]');
+ //await clickOn('[data-tid=refreshBookmarksTID]');
await expectElementExist(
'[data-tid=tsBookmarksTID' + testFolder + ']',
@@ -166,7 +167,7 @@ test.describe('TST09 - Quick access', () => {
);
});
- test('TST0907 - Create 2 local bookmarks and delete all bookmarks [electron,_pro]', async () => {
+ test('TST0907 - Create 2 local bookmarks and delete all bookmarks [electron,minio,_pro]', async () => {
await clickOn('[data-tid=quickAccessButton]');
const bookmarks = ['sample.txt', 'sample.jpg'];
for (let i = 0; i < bookmarks.length; i++) {
@@ -179,8 +180,8 @@ test.describe('TST09 - Quick access', () => {
await clickOn('[data-tid=toggleBookmarkTID]');
await clickOn('[data-tid=fileContainerCloseOpenedFile]');
// Refresh bookmarks
- await clickOn('[data-tid=BookmarksMenuTID]');
- await clickOn('[data-tid=refreshBookmarksTID]');
+ //await clickOn('[data-tid=BookmarksMenuTID]');
+ //await clickOn('[data-tid=refreshBookmarksTID]');
await expectElementExist(
'[data-tid=tsBookmarksTID' + dataTidFormat(bookmarks[i]) + ']',
@@ -197,7 +198,7 @@ test.describe('TST09 - Quick access', () => {
);
}
});
- test('TST0908 - Add, open and remove recently opened file [web,electron,_pro]', async () => {
+ test('TST0908 - Add, open and remove recently opened file [web,minio,electron,_pro]', async () => {
// Add
const fileTitle = 'sample.jpg';
const fileTid = dataTidFormat(fileTitle);
@@ -209,7 +210,9 @@ test.describe('TST09 - Quick access', () => {
// Open
await clickOn('[data-tid=quickAccessButton]');
- await clickOn('[data-tid=fileOpenHistoryTID]');
+ if (!(await isDisplayed('[data-tid=fileCloseHistoryTID]'))) {
+ await clickOn('[data-tid=fileOpenHistoryTID]');
+ }
await expectElementExist(
'[data-tid=tsLastOpenedFilesHistoryTID' + fileTid + ']',
);
@@ -225,9 +228,11 @@ test.describe('TST09 - Quick access', () => {
);
});
- test('TST0909 - Add 2 recently opened files and clear history [electron,_pro]', async () => {
+ test('TST0909 - Add 2 recently opened files and clear history [electron,minio,_pro]', async () => {
await clickOn('[data-tid=quickAccessButton]');
- await clickOn('[data-tid=fileOpenHistoryTID]');
+ if (!(await isDisplayed('[data-tid=fileCloseHistoryTID]'))) {
+ await clickOn('[data-tid=fileOpenHistoryTID]');
+ }
const files = ['sample.txt', 'sample.jpg'];
for (let i = 0; i < files.length; i++) {
@@ -239,8 +244,8 @@ test.describe('TST09 - Quick access', () => {
);
await clickOn('[data-tid=fileContainerCloseOpenedFile]');
// Refresh opened files
- await clickOn('[data-tid=fileOpenMenuTID]');
- await clickOn('[data-tid=refreshHistoryTID]');
+ //await clickOn('[data-tid=fileOpenMenuTID]');
+ //await clickOn('[data-tid=refreshHistoryTID]');
await expectElementExist(
'[data-tid=tsLastOpenedFilesHistoryTID' + fileTid + ']',
);
@@ -257,7 +262,7 @@ test.describe('TST09 - Quick access', () => {
}
});
- test.skip('TST0910 - Add, open and remove recently edited file [web,electron,_pro]', async () => {
+ test.skip('TST0910 - Add, open and remove recently edited file [web,minio,electron,_pro]', async () => {
// Add
const fileTitle = 'sample.txt';
const fileTid = dataTidFormat(fileTitle);
@@ -287,7 +292,7 @@ test.describe('TST09 - Quick access', () => {
);
});
- test('TST0912 - Add, open and remove recently opened folder properties [web,electron,_pro]', async () => {
+ test('TST0912 - Add, open and remove recently opened folder properties [web,minio,electron,_pro]', async () => {
// Add
const testFolder = 'empty_folder';
await rightClickOn('[data-tid=fsEntryName_' + testFolder + ']');
@@ -298,7 +303,9 @@ test.describe('TST09 - Quick access', () => {
// Open
await clickOn('[data-tid=quickAccessButton]');
- await clickOn('[data-tid=folderOpenHistoryTID]');
+ if (!(await isDisplayed('[data-tid=folderCloseHistoryTID]'))) {
+ await clickOn('[data-tid=folderOpenHistoryTID]');
+ }
await expectElementExist(
'[data-tid=tsLastOpenedFoldersHistoryTID' + testFolder + ']',
true,
@@ -321,7 +328,7 @@ test.describe('TST09 - Quick access', () => {
);
});
- test('TST0913 - Add 2 recently opened folders and clear history [web,electron,_pro]', async () => {
+ test('TST0913 - Add 2 recently opened folders and clear history [web,minio,electron,_pro]', async () => {
const folders = ['new_folder', 'new_folder1'];
for (let i = 0; i < folders.length; i++) {
const testFolder = await createNewDirectory(folders[i]);
@@ -332,11 +339,13 @@ test.describe('TST09 - Quick access', () => {
await clickOn('[data-tid=folderContainerOpenDirMenu]');
await clickOn('[data-tid=showProperties]');*/
await clickOn('[data-tid=fileContainerCloseOpenedFile]');
- await clickOn('[data-tid=gridPerspectiveOnBackButton]');
+ //await clickOn('[data-tid=gridPerspectiveOnBackButton]');
}
await clickOn('[data-tid=quickAccessButton]');
- await clickOn('[data-tid=folderOpenHistoryTID]');
+ if (!(await isDisplayed('[data-tid=folderCloseHistoryTID]'))) {
+ await clickOn('[data-tid=folderOpenHistoryTID]');
+ }
for (let i = 0; i < folders.length; i++) {
// Open
const testFolder = folders[i];
@@ -367,7 +376,7 @@ test.describe('TST09 - Quick access', () => {
}
});
- test.skip('TST0914 - Add search to search history and search [web,electron]', async () => {
+ test.skip('TST0914 - Add search to search history and search [web,minio,electron]', async () => {
await searchEngine('txt');
await clickOn('#clearSearchID');
diff --git a/tests/e2e/search.pw.e2e.js b/tests/e2e/search.pw.e2e.js
index 829924ea2..a9fbddbfe 100644
--- a/tests/e2e/search.pw.e2e.js
+++ b/tests/e2e/search.pw.e2e.js
@@ -135,7 +135,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,electron]', async () => {
const searchQuery = 'sample_exif.jpg'; //'jpg';
await addSearchCommand(searchQuery, true);
await global.client.waitForSelector('img[alt="thumbnail image"]', {
diff --git a/tests/e2e/tag.pw.e2e.js b/tests/e2e/tag.pw.e2e.js
index ed112e01b..9d4149ff7 100644
--- a/tests/e2e/tag.pw.e2e.js
+++ b/tests/e2e/tag.pw.e2e.js
@@ -53,17 +53,17 @@ test.beforeEach(async () => {
});
test.describe('TST04 - Testing the tag library:', () => {
- test('TST0401 - Should create a tag group [web,minio,electron]', async () => {
+ test('TST0401 - Should create a tag group [web,electron]', async () => {
await createTagGroup(testGroup);
await deleteTagGroup(testGroup);
});
- test('TST0402 - Should delete tag group [web,minio,electron]', async () => {
+ test('TST0402 - Should delete tag group [web,electron]', async () => {
await createTagGroup(testGroup);
await deleteTagGroup(testGroup);
});
- test('TST0403 - Rename tag group [web,minio,electron]', async () => {
+ test('TST0403 - Rename tag group [web,electron]', async () => {
await createTagGroup(testGroup);
await clickOn('[data-tid=tagLibraryMoreButton_' + testGroup + ']');
await clickOn('[data-tid=editTagGroup]');
@@ -76,7 +76,7 @@ test.describe('TST04 - Testing the tag library:', () => {
await deleteTagGroup(editedGroupName);
});
- test.skip('TST0404 - Change default tag group tag colors [web,minio,electron]', async () => {
+ test.skip('TST0404 - Change default tag group tag colors [web,electron]', async () => {
await createTagGroup(testGroup);
await clickOn('[data-tid=tagLibraryMoreButton_' + testGroup + ']');
await clickOn('[data-tid=editTagGroup]');
@@ -105,7 +105,7 @@ test.describe('TST04 - Testing the tag library:', () => {
await deleteTagGroup(testGroup);
});
- test('TST0405 - Should add tag to a tag group [web,minio,electron]', async () => {
+ test('TST0405 - Should add tag to a tag group [web,electron]', async () => {
await createTagGroup(testGroup);
await clickOn('[data-tid=tagLibraryMoreButton_' + testGroup + ']');
await addTags([newTagName]);
@@ -118,7 +118,7 @@ test.describe('TST04 - Testing the tag library:', () => {
test.skip('TST0406 - Import tag groups [manual]', async () => {});
- test('TST0405 - Add tag (s) Should add comma separated tags to a tag group [web,minio,electron]', async () => {
+ test('TST0405 - Add tag (s) Should add comma separated tags to a tag group [web,electron]', async () => {
await createTagGroup(testGroup);
await clickOn('[data-tid=tagLibraryMoreButton_' + testGroup + ']');
await addTags(arrTags);
@@ -131,7 +131,7 @@ test.describe('TST04 - Testing the tag library:', () => {
await deleteTagGroup(testGroup);
});
- test('TST0407 - Should rename tag [web,minio,electron]', async () => {
+ test('TST0407 - Should rename tag [web,electron]', async () => {
await tagMenu('done', 'editTagDialog');
await setInputValue('[data-tid=editTagInput] input', testTagName);
await clickOn('[data-tid=editTagConfirm]');
@@ -141,13 +141,13 @@ test.describe('TST04 - Testing the tag library:', () => {
);
});
- test('TST0408 - Should delete tag from a tag group [web,minio,electron]', async () => {
+ test('TST0408 - Should delete tag from a tag group [web,electron]', async () => {
await tagMenu('next', 'deleteTagDialog');
await clickOn('[data-tid=confirmDeleteTagDialogTagMenu]');
await expectElementExist('[data-tid=tagContainer_next]', false);
});
- test.skip('TST0409 - Should sort tags in a tag group lexicographically [web,minio,electron]', async () => {
+ test.skip('TST0409 - Should sort tags in a tag group lexicographically [web,electron]', async () => {
await clickOn('[data-tid=tagLibraryMoreButton_ToDo_Workflow]');
await clickOn('[data-tid=sortTagGroup]'); // TODO no validation, expect
// const tagGroupElements = await global.client.getText('//button[contains(., "' + testTagName + '")]');
@@ -155,7 +155,7 @@ test.describe('TST04 - Testing the tag library:', () => {
// expect(editedTag).toBe(testTagName);
});
- test.skip('TST0410 - Default colors for tags from settings [web,minio,electron]', async () => {
+ test.skip('TST0410 - Default colors for tags from settings [web,electron]', async () => {
await clickOn('[data-tid=settings]');
await clickOn('[data-tid=settingsToggleDefaultTagBackgroundColor]');
const inputElem = await global.client.$(
@@ -254,7 +254,7 @@ test.describe('TST04 - Testing the tag library:', () => {
test.skip('TST0417 - Collect tags from current location [electron, Pro]', async () => {});
- test('TST0419 - Create location based tag group [web,minio,electron, _pro]', async () => {
+ test('TST0419 - Create location based tag group [web,electron, _pro]', async () => {
await checkSettings(
'[data-tid=saveTagInLocationTID]',
true,
@@ -268,7 +268,7 @@ test.describe('TST04 - Testing the tag library:', () => {
await deleteTagGroup(testGroup);
});
- test('TST0420 - Load tag groups from location [web,minio,electron, _pro]', async () => {
+ test('TST0420 - Load tag groups from location [web,electron, _pro]', async () => {
const tslContent =
'{"appName":"TagSpaces","appVersion":"5.3.6","description":"","lastUpdated":"2023-06-08T16:51:23.926Z","tagGroups":[{"uuid":"collected_tag_group_id","title":"Collected Tags","color":"#61DD61","textcolor":"white","children":[{"title":"Stanimir","color":"#61DD61","textcolor":"white","type":"sidecar"}],"created_date":1686119562860,"modified_date":1686243083871,"expanded":true,"locationId":"dc1ffaaeeb5747e39dd171c7e551afd6"}]}';
await createFile('tsl.json', tslContent, '.ts');
@@ -288,7 +288,7 @@ test.describe('TST04 - Testing the tag library:', () => {
await expectElementExist('[data-tid=tagContainer_Stanimir]', true);
});
- test('TST0421 - Move tag to another tag group with DnD [web,minio,electron]', async () => {
+ test('TST0421 - Move tag to another tag group with DnD [web,electron]', async () => {
const tagName = '1star';
const sourceTagGroup = 'Ratings';
const destinationTagGroup = 'Priorities';