TagSpaces is an offline, open source, document manager with tagging support
S3proxy migration (#2435)
Ilian0ade10b726db
diff --git a/.claude/skills/translate/SKILL.md b/.claude/skills/translate/SKILL.mdnew file mode 100644index 000000000..2d9ec9b4a--- /dev/null+++ b/.claude/skills/translate/SKILL.md@@ -0,0 +1,116 @@+---+name: translate+description: Translate new or untranslated i18n strings from English core.json to all other locale files, maintaining consistency with each language's existing translations.+---++# Translate Skill++Automatically translate new or untranslated strings from the English `core.json` to all other locale files, maintaining consistency with each language's existing translations.++## Arguments++- No argument or `all`: process all languages+- A language code (e.g., `de_DE`, `ja`, `bg`): process only that language+- `report`: only show what's missing/untranslated, don't translate++## File Paths++- **Source of truth**: `src/renderer/locales/en/core.json`+- **Target locales**: every subdirectory of `src/renderer/locales/` except `en/`+- Each locale has a single file: `core.json` (flat key-value JSON, no nesting)++## Step 1 — Detect what needs translating++1. Read `src/renderer/locales/en/core.json` (the English source).+2. List all directories under `src/renderer/locales/` to discover target languages.+3. If a specific language was requested, only process that one; otherwise process all.+4. For each target locale, read its `core.json` and compare against English:+ - **Missing keys**: present in English but absent in the target file.+ - **Untranslated keys**: value in the target is identical to the English value AND the key is NOT in the skip-list (see below).+ - **Orphan keys**: present in the target but absent from English (candidates for removal).+5. Print a summary table to the user:+ ```+ Language | Missing | Untranslated | Orphan+ ----------|---------|--------------|-------+ de_DE | 3 | 1 | 0+ ja | 3 | 5 | 0+ ...+ ```+6. If the argument was `report`, stop here. Otherwise, ask the user for confirmation before proceeding (unless `--yes` was passed).++### Skip-list for untranslated detection++These keys are expected to have the same value as English in many/all languages. Do NOT flag them as untranslated:++- Keys where the English value is a single symbol, number, or punctuation (e.g., `"-"`, `"/"`)+- Keys where the English value is a proper noun or brand name only (e.g., `"TagSpaces"`, `"Mapique"`)+- Keys where the English value is a widely-used English loanword that many languages keep as-is (e.g., `"Ok"`, `"Email"`, `"Kanban"`)+- When in doubt, check if at least 5 other languages also have the same value as English — if so, it's likely intentional.++## Step 2 — Gather translation context++For each language that needs translations:++1. Read the full `core.json` for that language.+2. Select a **context sample** of ~50 existing translated key-value pairs. Prioritize:+ - Strings thematically similar to the ones being translated (e.g., if translating UI button labels, sample existing button labels).+ - A mix of short labels and longer descriptive strings to capture both terse and verbose style.+3. This sample will be used as a **style and terminology reference** when translating, ensuring:+ - Consistent tone and formality level (formal "Sie" vs informal "du" in German, etc.)+ - Consistent term choices (e.g., if "folder" has been translated as "Ordner" in German, keep using "Ordner")+ - Consistent punctuation patterns++## Step 3 — Translate++For each language, translate all missing and untranslated keys:++1. Use the English value as the source text.+2. Reference the context sample from Step 2 for style/terminology consistency.+3. Apply the following rules strictly:++### Translation Rules++- **NEVER modify `en/core.json`** — it is read-only for this skill.+- **Preserve `{{variables}}` exactly** — template placeholders like `{{fileName}}`, `{{version}}`, `{{count}}` must appear in the translation unchanged. Do not translate, reorder, or remove them.+- **Preserve HTML tags exactly** — tags like `<br>`, `<b>`, `</b>`, `<a>` etc. must remain intact.+- **Keep technical terms in English** across all languages: TagSpaces, Kanban, Markdown, HTML, S3, WebDAV, AI, URL, QR, EXIF, FolderViz, Mapique, JSON, PDF, EPUB, CSV, ZIP, GPX, KML, Pro.+- **German (de_DE) specific**: Use "Tags" for tags, NOT "Schlagwort/Schlagwörter". The English loanword "Tags" is the project standard.+- **Match existing tone**: If a language uses formal address (e.g., "Sie" in German, "Vous" in French), maintain that. If informal, maintain that. Determine this from the existing translations.+- **Natural phrasing**: Translations should read naturally in the target language, not be word-for-word calques from English.+- **Translate language by language** (not key by key) to maintain internal consistency within each locale.++## Step 4 — Write results++1. For each modified locale, construct the full `core.json` with:+ - **The same key order as `en/core.json`** (this keeps diffs clean and structure consistent).+ - All existing translations preserved (only missing/untranslated keys get new values).+ - Orphan keys removed (keys not present in `en/core.json`).+2. Write the file using the Write tool or Edit tool as appropriate.+3. **Validate JSON**: After writing, verify the file is valid JSON (use `node -e "JSON.parse(require('fs').readFileSync('path'))"` or equivalent).+4. Print a final summary:+ ```+ Language | Added | Updated | Removed | Status+ ----------|-------|---------|---------|-------+ de_DE | 3 | 1 | 0 | OK+ ja | 3 | 5 | 0 | OK+ ...+ ```++## Performance Strategy++- For a single language: process directly in the main conversation.+- For all 33 languages: use the Agent tool to parallelize. Launch multiple agents, each handling a batch of ~4-5 languages. Each agent receives:+ - The full English `core.json`+ - The list of missing/untranslated keys (from Step 1)+ - The target language files to process+ - These translation rules++## Edge Cases++| Case | Handling |+|---|---|+| Value same as English but intentional | Use the skip-list; also check if 5+ other languages have the same value |+| New language directory with empty/missing `core.json` | Generate a complete translation from scratch |+| Key has only whitespace or empty string in target | Treat as untranslated |+| English value contains line breaks (`\n`) | Preserve line breaks in translation |+| English value is very long (100+ chars) | Translate fully, do not truncate |diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.ymlindex 92a631243..39b8761ba 100644--- a/.github/workflows/pull_request.yml+++ b/.github/workflows/pull_request.yml@@ -46,7 +46,7 @@ jobs:tests/test-reports/playwright-report/e2eTestsWinS3:- name: Test desktop pro app on Mac with S3 bucket+ name: Test desktop pro app on Mac with S3Proxyruns-on: macos-latestenv:PD_PLATFORM: node@@ -60,6 +60,11 @@ jobs:with:repository: tagspaces/testdatapath: tests/testdata+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Configure NPM for TagSpaces Prouses: actions/setup-node@v4with:@@ -76,6 +81,15 @@ jobs:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}- name: Run Unit testsrun: npm run test-unit+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4+ with:+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"- name: Run Electron testsrun: |npm run build-e2e@@ -89,7 +103,7 @@ jobs:tests/test-reports/playwright-report/e2eTestsWebWin:- name: Test web pro app on Windows with Minio+ name: Test web pro app on Windows with S3Proxyruns-on: windows-latestenv:PD_PLATFORM: web@@ -103,6 +117,11 @@ jobs:with:repository: tagspaces/testdatapath: tests/testdata+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Configure NPM for TagSpaces Prouses: actions/setup-node@v4with:@@ -120,27 +139,29 @@ jobs:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}- name: Run Unit testsrun: npm run test-unit- - uses: carlosperate/download-file-action@v2- id: minio- name: Download the Minio- with:- file-url: 'https://s3.eu-central-1.wasabisys.com/demots/public/mc-20201119/minio.exe'- file-name: 'minio.exe'- location: './tests/bin/'- - name: Run Electron tests+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4+ with:+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"+ - name: Run E2E testsrun: |npm run build-e2e-web- npm run test-playwright-web-headless-minio+ npm run test-playwright-web-headless- uses: actions/upload-artifact@v4if: failure()with:- name: test-artifacts-web-minio-win+ name: test-artifacts-web-s3-winpath: |test-results/tests/test-reports/playwright-report/e2eTestsWebMac:- name: Test web pro app on Mac OS+ name: Test web pro app on Mac OS with S3Proxyruns-on: macos-latestenv:PD_PLATFORM: web@@ -154,6 +175,11 @@ jobs:with:repository: tagspaces/testdatapath: tests/testdata+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Configure NPM for TagSpaces Prouses: actions/setup-node@v4with:@@ -171,7 +197,16 @@ jobs:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}- name: Run Unit testsrun: npm run test-unit- - name: Run Electron tests+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4+ with:+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"+ - name: Run E2E testsrun: |npm run build-e2e-webnpm run test-playwright-web-headlessdiff --git a/.github/workflows/workflow_dispatch.yml b/.github/workflows/workflow_dispatch.ymlindex 0c018cb64..d2d952d8e 100644--- a/.github/workflows/workflow_dispatch.yml+++ b/.github/workflows/workflow_dispatch.yml@@ -35,17 +35,22 @@ jobs:npm run type-checkenv:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Run Unit testsrun: npm run test-unit- - uses: suisei-cn/[email protected]- id: minio- name: Download Minio program+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4with:- # url: 'https://dl.min.io/server/minio/release/windows-amd64/minio.exe'- url: 'https://dl.min.io/server/minio/release/linux-amd64/minio'- target: tests/bin/- - name: Make Minio executable- run: chmod +x ./tests/bin/minio+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"- name: Run Electron testsrun: |npm run build-e2ediff --git a/.github/workflows/workflow_scheduled_mac_minio_pro.yml b/.github/workflows/workflow_scheduled_mac_s3_pro.ymlsimilarity index 66%rename from .github/workflows/workflow_scheduled_mac_minio_pro.ymlrename to .github/workflows/workflow_scheduled_mac_s3_pro.ymlindex 87d34c596..e19788be2 100644--- a/.github/workflows/workflow_scheduled_mac_minio_pro.yml+++ b/.github/workflows/workflow_scheduled_mac_s3_pro.yml@@ -1,4 +1,4 @@-name: Nightly E2E Electron Pro macOS ObjectStorage+name: Nightly E2E Electron Pro macOS S3on:schedule:- cron: '0 4 * * *'@@ -6,7 +6,7 @@ on:jobs:e2eTestsElectronMac:- name: Test TagSpaces Desktop on Mac+ name: Test TagSpaces Desktop on Mac with S3Proxyruns-on: macos-lateststeps:- name: Checking out default branch@@ -19,6 +19,11 @@ jobs:with:repository: tagspaces/testdatapath: tests/testdata+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Configure NPMuses: actions/setup-node@v4with:@@ -36,23 +41,19 @@ jobs:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}- name: Run Unit testsrun: npm run test-unit- - uses: carlosperate/download-file-action@v2- id: minio- name: Download the Minio+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4with:- file-url: 'https://s3.eu-central-1.wasabisys.com/demots/public/mc-20201119/minio-mac'- file-name: 'minio'- location: './tests/bin/'- - name: Check if Minio exists- run: |- ls ./tests/bin/- test -f ./tests/bin/minio- - name: Make the Minio executable- run: chmod +x ./tests/bin/minio+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"- name: Run Electron testsrun: |npm run build-e2e- npm run test-playwright-minio+ npm run test-playwright-s3- uses: actions/upload-artifact@v4if: failure()with:diff --git a/.github/workflows/workflow_scheduled_mac_web_pro.yml b/.github/workflows/workflow_scheduled_mac_web_pro.ymlindex 2597acfdd..b3517c2f5 100644--- a/.github/workflows/workflow_scheduled_mac_web_pro.yml+++ b/.github/workflows/workflow_scheduled_mac_web_pro.yml@@ -1,4 +1,4 @@-name: Nightly E2E Web Pro macOS ObjectStorage+name: Nightly E2E Web Pro macOS S3on:schedule:- cron: '0 3 * * *'@@ -34,22 +34,23 @@ jobs:npm run type-checkenv:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Run Unit testsrun: npm run test-unit- - uses: carlosperate/download-file-action@v2- id: minio- name: Download the Minio+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4with:- file-url: 'https://s3.eu-central-1.wasabisys.com/demots/public/mc-20201119/minio-mac'- file-name: 'minio'- location: './tests/bin/'- - name: Check if Minio exists- run: |- ls ./tests/bin/- test -f ./tests/bin/minio- - name: Make the Minio executable- run: chmod +x ./tests/bin/minio- - name: Run Electron tests+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"+ - name: Run E2E testsrun: |npm run build-e2e-webnpm run test-playwright-web-headlessdiff --git a/.github/workflows/workflow_scheduled_win_minio_pro.yml b/.github/workflows/workflow_scheduled_win_s3_pro.ymlsimilarity index 66%rename from .github/workflows/workflow_scheduled_win_minio_pro.ymlrename to .github/workflows/workflow_scheduled_win_s3_pro.ymlindex 9f7de1c78..22559ea30 100644--- a/.github/workflows/workflow_scheduled_win_minio_pro.yml+++ b/.github/workflows/workflow_scheduled_win_s3_pro.yml@@ -1,4 +1,4 @@-name: Nightly E2E Electron Pro Windows ObjectStorage+name: Nightly E2E Electron Pro Windows S3on:schedule:- cron: '0 1 * * *'@@ -6,7 +6,7 @@ on:jobs:e2eTestsElectronWin:- name: Test TagSpaces Pro on Windows+ name: Test TagSpaces Pro on Windows with S3Proxyruns-on: windows-lateststeps:- name: Checking out default branch@@ -19,6 +19,11 @@ jobs:with:repository: tagspaces/testdatapath: tests/testdata+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Configure NPM for TagSpaces Prouses: actions/setup-node@v4with:@@ -36,17 +41,19 @@ jobs:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}- name: Run Unit testsrun: npm run test-unit- - uses: carlosperate/download-file-action@v2- id: minio- name: Download the Minio+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4with:- file-url: 'https://s3.eu-central-1.wasabisys.com/demots/public/mc-20201119/minio.exe'- file-name: 'minio.exe'- location: './tests/bin/'+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"- name: Run Electron testsrun: |npm run build-e2e- npm run test-playwright-minio+ npm run test-playwright-s3- uses: actions/upload-artifact@v4if: failure()with:diff --git a/.github/workflows/workflow_scheduled_win_web_pro.yml b/.github/workflows/workflow_scheduled_win_web_pro.ymlindex b0bc6d191..4ea4f3317 100644--- a/.github/workflows/workflow_scheduled_win_web_pro.yml+++ b/.github/workflows/workflow_scheduled_win_web_pro.yml@@ -1,4 +1,4 @@-name: Nightly E2E Web Pro Windows ObjectStorage+name: Nightly E2E Web Pro Windows S3on:schedule:- cron: '0 1 * * *'@@ -35,19 +35,26 @@ jobs:npm run type-checkenv:NODE_AUTH_TOKEN: ${{ secrets.TSPNPMINSTALL }}+ - name: Setup Java+ uses: actions/setup-java@v4+ with:+ distribution: 'temurin'+ java-version: '21'- name: Run Unit testsrun: npm run test-unit- - uses: carlosperate/download-file-action@v2- id: minio- name: Download the Minio+ - name: Cache S3Proxy JAR+ id: cache-s3proxy+ uses: actions/cache@v4with:- file-url: 'https://s3.eu-central-1.wasabisys.com/demots/public/mc-20201119/minio.exe'- file-name: 'minio.exe'- location: './tests/bin/'- - name: Run Electron tests+ path: tests/s3proxy.jar+ key: s3proxy-3.0.0+ - name: Download S3Proxy+ if: steps.cache-s3proxy.outputs.cache-hit != 'true'+ run: curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"+ - name: Run E2E testsrun: |npm run build-e2e-web- npm run test-playwright-web-headless-minio+ npm run test-playwright-web-headless- uses: actions/upload-artifact@v4if: failure()with:diff --git a/.gitignore b/.gitignoreindex dd7f67dc6..2ec995ffe 100644--- a/.gitignore+++ b/.gitignore@@ -98,14 +98,11 @@ tests/*!tests/unit/!tests/e2e/!tests/global-setup.js-!tests/global-setup-minio.js!tests/global-setup-web.js-!tests/global-setup-web-minio.js!tests/global-teardown.js-!tests/global-teardown-minio.js!tests/global-teardown-web.js-!tests/global-teardown-web-minio.js!tests/setup-functions.js+!tests/s3proxy.conf!tests/test-data-refresh.js!tests/create-1000files-nothumbs.sh!tests/create-1000files.jsdiff --git a/CLAUDE.md b/CLAUDE.mdindex ef9e30c2f..98cdee2e2 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -28,3 +28,46 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co- When translating, preserve template variables exactly: `{{fileName}}`, `{{version}}`, etc.- Technical terms stay in English across all locales: TagSpaces, Kanban, Markdown, HTML, S3, WebDAV, AI, URL, QR, EXIF, FolderViz, Mapique- **German (de_DE)**: Use "Tags" for tags, NOT "Schlagwort/Schlagwörter". The English loanword "Tags" is the project standard for German.++## E2E Tests++### Setup+- **Framework**: Playwright with Electron and Chromium (web)+- **Test files**: `tests/e2e/*.pw.e2e.js` — test titles contain platform tags like `[web,s3,electron,_pro]`+- **S3 backend**: S3Proxy (Java, requires Java 21) replaces the old MinIO/S3rver setup+- **S3Proxy JAR**: `tests/s3proxy.jar` (not committed, downloaded in CI or locally via `curl`)+- **S3Proxy config**: Generated per-worker at runtime in `tests/setup-functions.js`+- **Test data**: Cloned from `tagspaces/testdata` repo into `tests/testdata/`; per-worker copies in `tests/testdata-{N}/`++### Running tests locally+```bash+# Requires Java 21 on PATH+export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH" # macOS with Homebrew++# Download S3Proxy JAR (once)+curl -sL -o tests/s3proxy.jar "https://repo1.maven.org/maven2/org/gaul/s3proxy/3.0.0/s3proxy-3.0.0-jar-with-dependencies.jar"++# Build for e2e first+npm run build-e2e # Electron+npm run build-e2e-web # Web++# Run test suites+npm run test-playwright-s3 # Electron + S3+npm run test-playwright-web-headless # Web + S3++# Run a single test+npx playwright test --project=electron-s3 -g 'TST0101'+npx playwright test --project=web-s3 -g 'TST0101'++# Run a specific test file+npx playwright test --project=electron-s3 folder.pw.e2e.js+```++### Key patterns and pitfalls+- **Workers = 1**: Tests run sequentially. Running multiple Playwright instances in parallel causes port conflicts on S3Proxy (port 4569).+- **Test isolation**: Tests share a single Electron/browser instance per worker. Earlier tests can leave dirty state (renamed files, moved folders, tags) that breaks later tests. When a test fails, check if it passes in isolation first (`-g 'TSTXXXX'`).+- **S3 test data refresh**: `testDataRefresh()` in `hook.js` deletes all S3 objects and re-uploads. Uses individual `DeleteObjectCommand` (not batch `DeleteObjectsCommand`) because S3Proxy's filesystem backend throws `DirectoryNotEmptyException` on batch deletes when parent directories still contain children. Objects are sorted deepest-first before deletion.+- **S3Proxy config essentials**: `s3proxy.ignore-unknown-headers=true` (AWS SDK v3 sends `x-amz-checksum-crc32` headers), `s3proxy.cors-allow-all=true` (required for web tests), `jclouds.provider=filesystem-nio2`.+- **Confirm dialogs**: The app uses `window.confirm()` for some operations (e.g., thumbnail overwrite). Handle with `global.client.once('dialog', (dialog) => dialog.accept())` **before** the triggering action.+- **S3 limitations**: Some features don't work on S3 locations — thumbnail generation for ODT/ODS/EPUB/TIFF, folder thumbnail set/clear (`setAsThumbTID`), sublocation listing. Keep these tests tagged `[electron,_pro]` without `s3`.+- **Timeouts**: S3 operations are slower than local filesystem. Use 10-15s for element existence checks on S3 (vs 5s local). The `createLocation` helper uses 30s for folder existence after opening a new location.diff --git a/package-lock.json b/package-lock.jsonindex 2f2d9e9de..15f3b0ca1 100644--- a/package-lock.json+++ b/package-lock.json@@ -152,7 +152,6 @@"react-test-renderer": "18.2.0","redux-logger": "3.0.6","rimraf": "6.1.3",- "s3rver": "3.7.1","serve-static": "^1.14.1","shelljs": "0.10.0","shx": "0.4.0",@@ -12688,14 +12687,6 @@"w3c-keyname": "^2.2.4"}},- "node_modules/@colors/colors": {- "version": "1.6.0",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.1.90"- }- },"node_modules/@cspotcode/source-map-support": {"version": "0.8.1","dev": true,@@ -12777,16 +12768,6 @@"@csstools/css-tokenizer": "^2.4.1"}},- "node_modules/@dabh/diagnostics": {- "version": "2.0.3",- "dev": true,- "license": "MIT",- "dependencies": {- "colorspace": "1.1.x",- "enabled": "2.0.x",- "kuler": "^2.0.0"- }- },"node_modules/@develar/schema-utils": {"version": "2.6.5","resolved": "https://registry.npmjs.org/@develar/schema-utils/-/schema-utils-2.6.5.tgz",@@ -14647,57 +14628,6 @@"tslib": "2"}},- "node_modules/@koa/router": {- "version": "9.4.0",- "dev": true,- "license": "MIT",- "dependencies": {- "debug": "^4.1.1",- "http-errors": "^1.7.3",- "koa-compose": "^4.1.0",- "methods": "^1.1.2",- "path-to-regexp": "^6.1.0"- },- "engines": {- "node": ">= 8.0.0"- }- },- "node_modules/@koa/router/node_modules/depd": {- "version": "1.1.2",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/@koa/router/node_modules/http-errors": {- "version": "1.8.1",- "dev": true,- "license": "MIT",- "dependencies": {- "depd": "~1.1.2",- "inherits": "2.0.4",- "setprototypeof": "1.2.0",- "statuses": ">= 1.5.0 < 2",- "toidentifier": "1.0.1"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/@koa/router/node_modules/path-to-regexp": {- "version": "6.3.0",- "dev": true,- "license": "MIT"- },- "node_modules/@koa/router/node_modules/statuses": {- "version": "1.5.0",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },"node_modules/@leichtgewicht/ip-codec": {"version": "2.0.5","dev": true,@@ -19274,11 +19204,6 @@"webpack": "^5.1.0"}},- "node_modules/@types/triple-beam": {- "version": "1.3.5",- "dev": true,- "license": "MIT"- },"node_modules/@types/trusted-types": {"version": "2.0.7","license": "MIT",@@ -21798,16 +21723,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/busboy": {- "version": "0.3.1",- "dev": true,- "dependencies": {- "dicer": "0.3.0"- },- "engines": {- "node": ">=4.5.0"- }- },"node_modules/bytes": {"version": "3.1.2","dev": true,@@ -21925,18 +21840,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/cache-content-type": {- "version": "1.0.1",- "dev": true,- "license": "MIT",- "dependencies": {- "mime-types": "^2.1.18",- "ylru": "^1.2.0"- },- "engines": {- "node": ">= 6.0.0"- }- },"node_modules/cacheable-lookup": {"version": "5.0.4","dev": true,@@ -22431,6 +22334,7 @@"version": "4.6.0","dev": true,"license": "MIT",+ "peer": true,"engines": {"iojs": ">= 1.0.0","node": ">= 0.12.0"@@ -22455,15 +22359,6 @@"license": "MIT","peer": true},- "node_modules/color": {- "version": "3.2.1",- "dev": true,- "license": "MIT",- "dependencies": {- "color-convert": "^1.9.3",- "color-string": "^1.6.0"- }- },"node_modules/color-convert": {"version": "2.0.1","license": "MIT",@@ -22478,28 +22373,6 @@"version": "1.1.4","license": "MIT"},- "node_modules/color-string": {- "version": "1.9.1",- "dev": true,- "license": "MIT",- "dependencies": {- "color-name": "^1.0.0",- "simple-swizzle": "^0.2.2"- }- },- "node_modules/color/node_modules/color-convert": {- "version": "1.9.3",- "dev": true,- "license": "MIT",- "dependencies": {- "color-name": "1.1.3"- }- },- "node_modules/color/node_modules/color-name": {- "version": "1.1.3",- "dev": true,- "license": "MIT"- },"node_modules/colord": {"version": "2.9.3","dev": true,@@ -22510,15 +22383,6 @@"dev": true,"license": "MIT"},- "node_modules/colorspace": {- "version": "1.1.4",- "dev": true,- "license": "MIT",- "dependencies": {- "color": "^3.1.3",- "text-hex": "1.0.x"- }- },"node_modules/combined-stream": {"version": "1.0.8","dev": true,@@ -22823,18 +22687,6 @@"node": ">=6.6.0"}},- "node_modules/cookies": {- "version": "0.9.1",- "dev": true,- "license": "MIT",- "dependencies": {- "depd": "~2.0.0",- "keygrip": "~1.1.0"- },- "engines": {- "node": ">= 0.8"- }- },"node_modules/coordinate-parser": {"version": "1.0.7","license": "Apache-2.0"@@ -23609,11 +23461,6 @@"dev": true,"license": "MIT"},- "node_modules/deep-equal": {- "version": "1.0.1",- "dev": true,- "license": "MIT"- },"node_modules/deep-is": {"version": "0.1.4","dev": true,@@ -23737,11 +23584,6 @@"node": ">=0.4.0"}},- "node_modules/delegates": {- "version": "1.0.0",- "dev": true,- "license": "MIT"- },"node_modules/depd": {"version": "2.0.0","license": "MIT",@@ -23813,16 +23655,6 @@"url": "https://github.com/sponsors/wooorm"}},- "node_modules/dicer": {- "version": "0.3.0",- "dev": true,- "dependencies": {- "streamsearch": "0.1.2"- },- "engines": {- "node": ">=4.5.0"- }- },"node_modules/diff": {"version": "4.0.4","resolved": "https://registry.npmjs.org/diff/-/diff-4.0.4.tgz",@@ -24556,11 +24388,6 @@"node": ">= 4"}},- "node_modules/enabled": {- "version": "2.0.0",- "dev": true,- "license": "MIT"- },"node_modules/encodeurl": {"version": "2.0.0","license": "MIT",@@ -26883,11 +26710,6 @@}}},- "node_modules/fecha": {- "version": "4.2.3",- "dev": true,- "license": "MIT"- },"node_modules/fflate": {"version": "0.7.3","resolved": "https://registry.npmjs.org/fflate/-/fflate-0.7.3.tgz",@@ -27162,11 +26984,6 @@"license": "MIT","peer": true},- "node_modules/fn.name": {- "version": "1.1.0",- "dev": true,- "license": "MIT"- },"node_modules/follow-redirects": {"version": "1.15.9","funding": [@@ -28162,49 +27979,6 @@"url": "https://github.com/fb55/entities?sponsor=1"}},- "node_modules/http-assert": {- "version": "1.5.0",- "dev": true,- "license": "MIT",- "dependencies": {- "deep-equal": "~1.0.1",- "http-errors": "~1.8.0"- },- "engines": {- "node": ">= 0.8"- }- },- "node_modules/http-assert/node_modules/depd": {- "version": "1.1.2",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/http-assert/node_modules/http-errors": {- "version": "1.8.1",- "dev": true,- "license": "MIT",- "dependencies": {- "depd": "~1.1.2",- "inherits": "2.0.4",- "setprototypeof": "1.2.0",- "statuses": ">= 1.5.0 < 2",- "toidentifier": "1.0.1"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/http-assert/node_modules/statuses": {- "version": "1.5.0",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },"node_modules/http-cache-semantics": {"version": "4.2.0","dev": true,@@ -28324,10 +28098,6 @@"node": ">=10.17.0"}},- "node_modules/humanize-number": {- "version": "0.0.2",- "dev": true- },"node_modules/husky": {"version": "7.0.4","dev": true,@@ -30529,17 +30299,6 @@"version": "0.2.2","license": "MIT"},- "node_modules/keygrip": {- "version": "1.1.0",- "dev": true,- "license": "MIT",- "dependencies": {- "tsscmp": "1.0.6"- },- "engines": {- "node": ">= 0.6"- }- },"node_modules/keyv": {"version": "4.5.4","dev": true,@@ -30572,180 +30331,6 @@"dev": true,"license": "MIT"},- "node_modules/koa": {- "version": "2.16.4",- "resolved": "https://registry.npmjs.org/koa/-/koa-2.16.4.tgz",- "integrity": "sha512-3An0GCLDSR34tsCO4H8Tef8Pp2ngtaZDAZnsWJYelqXUK5wyiHvGItgK/xcSkmHLSTn1Jcho1mRQs2ehRzvKKw==",- "dev": true,- "license": "MIT",- "dependencies": {- "accepts": "^1.3.5",- "cache-content-type": "^1.0.0",- "content-disposition": "~0.5.2",- "content-type": "^1.0.4",- "cookies": "~0.9.0",- "debug": "^4.3.2",- "delegates": "^1.0.0",- "depd": "^2.0.0",- "destroy": "^1.0.4",- "encodeurl": "^1.0.2",- "escape-html": "^1.0.3",- "fresh": "~0.5.2",- "http-assert": "^1.3.0",- "http-errors": "^1.6.3",- "is-generator-function": "^1.0.7",- "koa-compose": "^4.1.0",- "koa-convert": "^2.0.0",- "on-finished": "^2.3.0",- "only": "~0.0.2",- "parseurl": "^1.3.2",- "statuses": "^1.5.0",- "type-is": "^1.6.16",- "vary": "^1.1.2"- },- "engines": {- "node": "^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4"- }- },- "node_modules/koa-compose": {- "version": "4.1.0",- "dev": true,- "license": "MIT"- },- "node_modules/koa-convert": {- "version": "2.0.0",- "dev": true,- "license": "MIT",- "dependencies": {- "co": "^4.6.0",- "koa-compose": "^4.1.0"- },- "engines": {- "node": ">= 10"- }- },- "node_modules/koa-logger": {- "version": "3.2.1",- "dev": true,- "license": "MIT",- "dependencies": {- "bytes": "^3.1.0",- "chalk": "^2.4.2",- "humanize-number": "0.0.2",- "passthrough-counter": "^1.0.0"- },- "engines": {- "node": ">= 7.6.0"- }- },- "node_modules/koa-logger/node_modules/ansi-styles": {- "version": "3.2.1",- "dev": true,- "license": "MIT",- "dependencies": {- "color-convert": "^1.9.0"- },- "engines": {- "node": ">=4"- }- },- "node_modules/koa-logger/node_modules/chalk": {- "version": "2.4.2",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^3.2.1",- "escape-string-regexp": "^1.0.5",- "supports-color": "^5.3.0"- },- "engines": {- "node": ">=4"- }- },- "node_modules/koa-logger/node_modules/color-convert": {- "version": "1.9.3",- "dev": true,- "license": "MIT",- "dependencies": {- "color-name": "1.1.3"- }- },- "node_modules/koa-logger/node_modules/color-name": {- "version": "1.1.3",- "dev": true,- "license": "MIT"- },- "node_modules/koa-logger/node_modules/escape-string-regexp": {- "version": "1.0.5",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8.0"- }- },- "node_modules/koa-logger/node_modules/has-flag": {- "version": "3.0.0",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/koa-logger/node_modules/supports-color": {- "version": "5.5.0",- "dev": true,- "license": "MIT",- "dependencies": {- "has-flag": "^3.0.0"- },- "engines": {- "node": ">=4"- }- },- "node_modules/koa/node_modules/encodeurl": {- "version": "1.0.2",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.8"- }- },- "node_modules/koa/node_modules/http-errors": {- "version": "1.8.1",- "dev": true,- "license": "MIT",- "dependencies": {- "depd": "~1.1.2",- "inherits": "2.0.4",- "setprototypeof": "1.2.0",- "statuses": ">= 1.5.0 < 2",- "toidentifier": "1.0.1"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/koa/node_modules/http-errors/node_modules/depd": {- "version": "1.1.2",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/koa/node_modules/statuses": {- "version": "1.5.0",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/kuler": {- "version": "2.0.0",- "dev": true,- "license": "MIT"- },"node_modules/language-subtag-registry": {"version": "0.3.23","dev": true,@@ -31026,22 +30611,6 @@"url": "https://github.com/chalk/chalk?sponsor=1"}},- "node_modules/logform": {- "version": "2.7.0",- "dev": true,- "license": "MIT",- "dependencies": {- "@colors/colors": "1.6.0",- "@types/triple-beam": "^1.3.2",- "fecha": "^4.2.0",- "ms": "^2.1.1",- "safe-stable-stringify": "^2.3.1",- "triple-beam": "^1.3.0"- },- "engines": {- "node": ">= 12.0.0"- }- },"node_modules/longest-streak": {"version": "3.1.0","license": "MIT",@@ -33513,14 +33082,6 @@"wrappy": "1"}},- "node_modules/one-time": {- "version": "1.0.0",- "dev": true,- "license": "MIT",- "dependencies": {- "fn.name": "1.x.x"- }- },"node_modules/onetime": {"version": "5.1.2","dev": true,@@ -33535,10 +33096,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/only": {- "version": "0.0.2",- "dev": true- },"node_modules/open": {"version": "10.2.0","resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz",@@ -34486,11 +34043,6 @@"tslib": "^2.0.3"}},- "node_modules/passthrough-counter": {- "version": "1.0.0",- "dev": true,- "license": "MIT"- },"node_modules/path-exists": {"version": "4.0.0","license": "MIT",@@ -37476,66 +37028,6 @@"tslib": "^2.1.0"}},- "node_modules/s3rver": {- "version": "3.7.1",- "dev": true,- "license": "MIT",- "dependencies": {- "@koa/router": "^9.0.0",- "busboy": "^0.3.1",- "commander": "^5.0.0",- "fast-xml-parser": "^3.12.19",- "fs-extra": "^8.0.0",- "he": "^1.2.0",- "koa": "^2.7.0",- "koa-logger": "^3.2.0",- "lodash": "^4.17.5",- "statuses": "^2.0.0",- "winston": "^3.0.0"- },- "bin": {- "s3rver": "bin/s3rver.js"- },- "engines": {- "node": ">=8.3.0"- }- },- "node_modules/s3rver/node_modules/fast-xml-parser": {- "version": "3.21.1",- "dev": true,- "license": "MIT",- "dependencies": {- "strnum": "^1.0.4"- },- "bin": {- "xml2js": "cli.js"- },- "funding": {- "type": "paypal",- "url": "https://paypal.me/naturalintelligence"- }- },- "node_modules/s3rver/node_modules/fs-extra": {- "version": "8.1.0",- "dev": true,- "license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^4.0.0",- "universalify": "^0.1.0"- },- "engines": {- "node": ">=6 <7 || >=8"- }- },- "node_modules/s3rver/node_modules/universalify": {- "version": "0.1.2",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4.0.0"- }- },"node_modules/safe-array-concat": {"version": "1.1.3","dev": true,@@ -37603,14 +37095,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/safe-stable-stringify": {- "version": "2.5.0",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- }- },"node_modules/safer-buffer": {"version": "2.1.2","devOptional": true,@@ -38261,19 +37745,6 @@"node": "^20.17.0 || >=22.9.0"}},- "node_modules/simple-swizzle": {- "version": "0.2.2",- "dev": true,- "license": "MIT",- "dependencies": {- "is-arrayish": "^0.3.1"- }- },- "node_modules/simple-swizzle/node_modules/is-arrayish": {- "version": "0.3.2",- "dev": true,- "license": "MIT"- },"node_modules/simple-update-notifier": {"version": "2.0.0","dev": true,@@ -38484,14 +37955,6 @@"dev": true,"license": "MIT"},- "node_modules/stack-trace": {- "version": "0.0.10",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- }- },"node_modules/stack-utils": {"version": "2.0.6","license": "MIT",@@ -38577,13 +38040,6 @@"readable-stream": "^3.5.0"}},- "node_modules/streamsearch": {- "version": "0.1.2",- "dev": true,- "engines": {- "node": ">=0.8.0"- }- },"node_modules/string_decoder": {"version": "1.3.0","license": "MIT",@@ -39557,11 +39013,6 @@"node": "*"}},- "node_modules/text-hex": {- "version": "1.0.0",- "dev": true,- "license": "MIT"- },"node_modules/text-segmentation": {"version": "1.0.3","license": "MIT",@@ -39778,14 +39229,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/triple-beam": {- "version": "1.4.1",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 14.0.0"- }- },"node_modules/trough": {"version": "2.2.0","license": "MIT",@@ -40035,14 +39478,6 @@"version": "2.8.1","license": "0BSD"},- "node_modules/tsscmp": {- "version": "1.0.6",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.6.x"- }- },"node_modules/tsutils": {"version": "3.21.0","dev": true,@@ -41988,40 +41423,6 @@"integrity": "sha512-gEIQU4mkgl2OPeoNrWflcJFJ3Ae2BPd4eCsHHA/XikslkIVms/nHhvnvzIZV7VLmBvtFlDOzLt9rrZT+n6D67A==","license": "MIT"},- "node_modules/winston": {- "version": "3.17.0",- "dev": true,- "license": "MIT",- "dependencies": {- "@colors/colors": "^1.6.0",- "@dabh/diagnostics": "^2.0.2",- "async": "^3.2.3",- "is-stream": "^2.0.0",- "logform": "^2.7.0",- "one-time": "^1.0.0",- "readable-stream": "^3.4.0",- "safe-stable-stringify": "^2.3.1",- "stack-trace": "0.0.x",- "triple-beam": "^1.3.0",- "winston-transport": "^4.9.0"- },- "engines": {- "node": ">= 12.0.0"- }- },- "node_modules/winston-transport": {- "version": "4.9.0",- "dev": true,- "license": "MIT",- "dependencies": {- "logform": "^2.7.0",- "readable-stream": "^3.6.2",- "triple-beam": "^1.3.0"- },- "engines": {- "node": ">= 12.0.0"- }- },"node_modules/word-wrap": {"version": "1.2.5","dev": true,@@ -42194,14 +41595,6 @@"fd-slicer": "~1.1.0"}},- "node_modules/ylru": {- "version": "1.4.0",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4.0.0"- }- },"node_modules/yn": {"version": "3.1.1","dev": true,diff --git a/package.json b/package.jsonindex 26662011d..deb650aa5 100644--- a/package.json+++ b/package.json@@ -74,8 +74,6 @@"lint-styles": "stylelint --ignore-path .eslintignore '**/*.*(css|scss)' --syntax scss","lint-styles-fix": "npm run --silent lint-styles --fix; exit 0","linux-fix-sandbox": "sudo chown root:root node_modules/electron/dist/chrome-sandbox && sudo chmod 4755 node_modules/electron/dist/chrome-sandbox",- "minio-start": "./tests/bin/minio server ./tests/testdata-tmp/file-structure",- "minio-start-windows": ".\\tests\\bin\\minio.exe server ./tests/testdata-tmp/file-structure","package": "ts-node ./.erb/scripts/clean.js && npm run build && electron-builder build --publish never && npm run build:dll","package-android": "npm run build:cordova && npm run clean-maps && cd cordova && npm install && cordova build --release android","package-ci": "npm run postinstall && npm run build && electron-builder --publish always",@@ -95,7 +93,7 @@"package-win-pro": "npm run install-ext-node-win && npm run generate-extensions && ts-node ./.erb/scripts/clean.js && npm run build && npm run clean-maps && electron-builder --win --x64 --config node_modules/@tagspacespro/tagspacespro/resources/builder-pro.json","paste-android-linux": "adb shell input text '$(xclip -selection c -o)'","paste-android-macos": "adb shell input text \"'$(pbpaste)'\"",- "playwright-show-trace": "npx playwright show-trace \"test-results/folder.pw.e2e.js-TST01---Folder-management-TST0102---Reload-folder-web-minio-electron-/trace.zip\"",+ "playwright-show-trace": "npx playwright show-trace \"test-results/folder.pw.e2e.js-TST01---Folder-management-TST0102---Reload-folder-web-s3-electron-/trace.zip\"","postinstall": "npx rimraf node_modules/canvas && ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run prepare-node && node -r ts-node/register ./.erb/scripts/link-modules.ts && npm run build:dll","postlint-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{*{js,jsx,json},babelrc,eslintrc,prettierrc,stylelintrc}'","postlint-styles-fix": "prettier --ignore-path .eslintignore --single-quote --write '**/*.{css,scss}'",@@ -121,7 +119,7 @@"run-web-dev": "npm run prepare-web-pro-dev && node scripts/webserver.js","run-web-extensions": "npm run copy-web-pro && npm run copy-web-extensions && npm run gen-third-party-extensions && npm run build:web && node scripts/genswconf.js && node scripts/webserver.js","run-web-server": "node scripts/webserver.js",- "s3server-start": "cross-env NODE_OPTIONS=--openssl-legacy-provider ts-node ./scripts/startS3server.js",+ "s3proxy-start": "java -jar tests/s3proxy.jar --properties tests/s3proxy.conf","scope-login": "npm login --scope=@tagspacespro --registry=https://npm.pkg.github.com","setup-tests": "node scripts/setup-tests.js","sign-mac-app": "codesign --force --deep --sign - /Applications/TagSpaces.app",@@ -139,15 +137,12 @@"test-clone-data": "rimraf tests/testdata && git clone https://github.com/tagspaces/testdata tests/testdata","test-playwright": "npx playwright install --with-deps && cross-env npx playwright test --project=electron-light","test-playwright-list": "npx playwright test --project=web-s3 --list",- "test-playwright-minio": "npx playwright install --with-deps && cross-env npx playwright test --project=electron-minio","test-playwright-one": "npx playwright install --with-deps && cross-env npx playwright test --project=electron -g '/TST4906/'","test-playwright-file": "npx playwright install --with-deps && cross-env npx playwright test --project=electron perspective-kanban.pw.e2e.js","test-playwright-pro": "npx playwright install --with-deps && cross-env npx playwright test --project=electron",- "test-playwright-s3": "npx playwright install --with-deps && cross-env NODE_OPTIONS=--openssl-legacy-provider npx playwright test --project=electron-s3",- "test-playwright-web": "npx playwright install --with-deps && cross-env NODE_OPTIONS=--openssl-legacy-provider npx playwright test --project=web-s3",- "test-playwright-web-headless": "npx playwright install --with-deps && cross-env NODE_OPTIONS=--openssl-legacy-provider HEADLESS_MODE=true npx playwright test --project=web-s3",- "test-playwright-web-headless-minio": "npx playwright install --with-deps && cross-env HEADLESS_MODE=true npx playwright test --project=web-minio",- "test-playwright-web-minio": "npx playwright install --with-deps && cross-env npx playwright test --project=web-minio",+ "test-playwright-s3": "npx playwright install --with-deps && cross-env npx playwright test --project=electron-s3",+ "test-playwright-web": "npx playwright install --with-deps && cross-env npx playwright test --project=web-s3",+ "test-playwright-web-headless": "npx playwright install --with-deps && cross-env HEADLESS_MODE=true npx playwright test --project=web-s3","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/'","test-refresh-data": "rimraf tests/testdata-tmp && shx mkdir -p tests/testdata-tmp/file-structure && shx cp -rL tests/testdata/file-structure tests/testdata-tmp && npx playwright install --with-deps","test-unit": "npx playwright test --config ./playwright.unit.js",@@ -309,7 +304,6 @@"react-test-renderer": "18.2.0","redux-logger": "3.0.6","rimraf": "6.1.3",- "s3rver": "3.7.1","serve-static": "^1.14.1","shelljs": "0.10.0","shx": "0.4.0",diff --git a/playwright.config.js b/playwright.config.jsindex ba26fc1c0..3231bdfba 100644--- a/playwright.config.js+++ b/playwright.config.js@@ -54,15 +54,6 @@ export default defineConfig({isWin,},},- {- name: 'electron-minio',- grep: projectTagGrep(['electron', 'minio']),- use: {- isElectron: true,- isMinio: true,- isWin,- },- },{name: 'web-s3',grep: projectTagGrep(['web', 's3']),@@ -73,14 +64,5 @@ export default defineConfig({// ...devices['Desktop Chrome'],},},- {- name: 'web-minio',- grep: projectTagGrep(['web', 'minio']),- use: {- isWeb: true,- isMinio: true,- isWin,- },- },],});diff --git a/scripts/extconfig-objectstore-location.js b/scripts/extconfig-objectstore-location.jsindex edef37da1..61c3ca475 100644--- a/scripts/extconfig-objectstore-location.js+++ b/scripts/extconfig-objectstore-location.js@@ -3,33 +3,14 @@ window.ExtCheckForUpdatesOnStartup = false;window.ExtUseGenerateThumbnails = true;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-minio', // 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 locationtype: '1', // 1 defines the locations a cloud basedname: 'supported-filestypes-s3', // the name of the locationpath: '', // the path to sub folder in the locationendpointURL: 'http://localhost:4569',- accessKeyId: 'S3RVER', // the access key of the user- secretAccessKey: 'S3RVER', // the secret case of the user+ accessKeyId: 'test', // the access key of the user+ secretAccessKey: 'test', // the secret case of the userbucketName: 'supported-filestypes', // the name of the S3 bucketregion: 'eu-central-1', // the AWS regionisDefault: true, // if true this location will be loaded by the application startdiff --git a/scripts/extconfig-s3-location.js b/scripts/extconfig-s3-location.jsindex 2968e05d2..888844908 100644--- a/scripts/extconfig-s3-location.js+++ b/scripts/extconfig-s3-location.js@@ -9,8 +9,8 @@ window.ExtLocations = [name: 'supported-filestypes', // the name of the locationpath: '', // the path to sub folder in the locationendpointURL: 'http://localhost:4569',- accessKeyId: 'S3RVER', // the access key of the user- secretAccessKey: 'S3RVER', // the secret case of the user+ accessKeyId: 'test', // the access key of the user+ secretAccessKey: 'test', // the secret case of the userbucketName: 'supported-filestypes', // the name of the S3 bucketregion: 'eu-central-1', // the AWS regionisDefault: true, // if true this location will be loaded by the application startdiff --git a/scripts/startS3server.js b/scripts/startS3server.jsindex f73506800..a3498c219 100644--- a/scripts/startS3server.js+++ b/scripts/startS3server.js@@ -1,11 +1,11 @@import path from 'path';import { uploadTestDirectory } from '../tests/s3rver/S3DataRefresh';-import { runS3Server } from '../tests/setup-functions';+import { runS3Proxy } from '../tests/setup-functions';-runS3Server('testdata1')- .then((instance) =>+runS3Proxy('testdata1')+ .then((process) =>uploadTestDirectory(path.resolve(__dirname, '..', 'tests', 'testdata')),).then(() => {- console.log('S3.server started');+ console.log('S3Proxy server started');});diff --git a/tests/e2e/fileopener.pw.e2e.js b/tests/e2e/fileopener.pw.e2e.jsindex fc4fa192c..b1b7de50a 100644--- a/tests/e2e/fileopener.pw.e2e.js+++ b/tests/e2e/fileopener.pw.e2e.js@@ -34,7 +34,6 @@ import {} from './hook';import {createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,} from './location.helpers';@@ -48,15 +47,12 @@ test.afterEach(async ({ isS3, testDataDir }, testInfo) => {});test.beforeEach(- async ({ isMinio, isS3, isWeb, webServerPort, testDataDir }, testInfo) => {+ async ({ isS3, isWeb, webServerPort, testDataDir }, testInfo) => {await startTestingApp({ isWeb, isS3, webServerPort, testInfo },- isMinio || isS3 ? undefined : 'extconfig.js',+ isS3 ? undefined : 'extconfig.js',);- if (isMinio) {- await closeWelcomePlaywright();- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await closeWelcomePlaywright();await createS3Location('', defaultLocationName, true);} else {@@ -311,8 +307,7 @@ test.describe('TST08 - File folder properties', () => {await expectFileContain(newFileContent, 15000);});- test('TST0813 - Delete file and check meta and thumbnails deleted [web,minio,s3,electron]', async ({- isMinio,+ test('TST0813 - Delete file and check meta and thumbnails deleted [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -336,7 +331,7 @@ test.describe('TST08 - File folder properties', () => {await expectElementExist(getGridFileSelector(fileName));await openFile(fileName, 'showPropertiesTID');- const tags = isMinio ? ['test-tag1'] : ['test-tag1', 'test-tag2'];+ const tags = ['test-tag1', 'test-tag2'];// add meta json to fileawait AddRemovePropertiesTags(tags, {add: true,@@ -358,7 +353,7 @@ test.describe('TST08 - File folder properties', () => {await setSettings('[data-tid=settingsSetPersistTagsInFileName]', true);});- test('TST0813a - Delete file and check revisions deleted [web,minio,s3,electron,_pro]', async () => {+ test('TST0813a - Delete file and check revisions deleted [web,s3,electron,_pro]', async () => {const fileName = 'sample.txt';await openFile(fileName);await createRevision();@@ -409,7 +404,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,s3,electron]', async () => {+ test('TST0827 - Link for internal sharing + copy [web,s3,electron]', async () => {const fileName = 'sample.jpg';await openFile(fileName, 'showPropertiesTID');@@ -429,7 +424,7 @@ test.describe('TST08 - File folder properties', () => {);});- test('TST0828 - Toggle file revisions [web,minio,s3,electron,_pro]', async () => {+ test('TST0828 - Toggle file revisions [web,s3,electron,_pro]', async () => {const fileName = 'sample.html';await openFile(fileName);await createRevision('revision content', 'div[class="note-editing-area"]');@@ -437,7 +432,7 @@ test.describe('TST08 - File folder properties', () => {expect(revision).not.toBeUndefined();});- test('TST0829 - Create and restore revision [web,minio,s3,electron,_pro]', async () => {+ test('TST0829 - Create and restore revision [web,s3,electron,_pro]', async () => {const fileName = 'sample.txt';await openFile(fileName);await expectFileSizeGt(2);@@ -458,7 +453,7 @@ test.describe('TST08 - File folder properties', () => {await expectFileContain(initContent, 15000);});- test('TST0830 - Create, open and delete revision [web,minio,s3,electron,_pro]', async () => {+ test('TST0830 - Create, open and delete revision [web,s3,electron,_pro]', async () => {//create revisionconst fileName = 'sample.txt';await openFile(fileName);@@ -496,7 +491,7 @@ test.describe('TST08 - File folder properties', () => {);});- test('TST0831 - Create 2 revisions and delete all revision [web,minio,s3,electron,_pro]', async () => {+ test('TST0831 - Create 2 revisions and delete all revision [web,s3,electron,_pro]', async () => {const fileName = 'sample.md';await openFile(fileName);await createRevision(diff --git a/tests/e2e/fixtures.js b/tests/e2e/fixtures.jsindex f91649697..fb5bc804c 100644--- a/tests/e2e/fixtures.js+++ b/tests/e2e/fixtures.js@@ -1,5 +1,5 @@import { test as base, expect } from '@playwright/test';-import { runS3Server, startMinio, startWebServer } from '../setup-functions';+import { runS3Proxy, startWebServer } from '../setup-functions';import { uploadTestDirectory } from '../s3rver/S3DataRefresh';import { copyExtConfig, removeExtConfig } from './hook';import pathLib from 'path';@@ -9,7 +9,6 @@ import fse from 'fs-extra';const test = base.extend({isWeb: [false, { option: true, scope: 'worker' }],isS3: [false, { option: true, scope: 'worker' }],- isMinio: [false, { option: true, scope: 'worker' }],isWin: [false, { option: true, scope: 'worker' }],/* TODO// 1) Launch Electron once per test (or per worker if you prefer beforeAll)@@ -45,8 +44,7 @@ const test = base.extend({s3Server: [async ({ isS3 }, use, testInfo) => {if (isS3) {- //testInfo.title.includes('web')) {- const s3Server = await runS3Server(`testdata-${testInfo.workerIndex}`);+ const s3Process = await runS3Proxy(`testdata-${testInfo.workerIndex}`);const src = pathLib.join(__dirname,'..',@@ -55,8 +53,9 @@ const test = base.extend({'supported-filestypes',);await uploadTestDirectory(src);- await use(s3Server);- await s3Server.close();+ await use(s3Process);+ s3Process.stdin.pause();+ s3Process.kill();await fse.rm(pathLib.join(__dirname, '..', `testdata-${testInfo.workerIndex}`),{@@ -73,23 +72,6 @@ const test = base.extend({},{ scope: 'worker', auto: true },],- minioServer: [- async ({ isMinio, isWin, testDataDir }, use, testInfo) => {- if (isMinio) {- const minioProcess = await startMinio(- isWin,- `testdata-${testInfo.workerIndex}`,- );- await use(minioProcess);- minioProcess.stdin.pause();- minioProcess.kill();- } else {- // If the test does not require the S3 server, just use a dummy value- await use(null);- }- },- { scope: 'worker', auto: true },- ],testDataDir: [async ({ isS3 }, use, testInfo) => {if (!isS3) {diff --git a/tests/e2e/folder.pw.e2e.js b/tests/e2e/folder.pw.e2e.jsindex 62457077b..d46402fa6 100644--- a/tests/e2e/folder.pw.e2e.js+++ b/tests/e2e/folder.pw.e2e.js@@ -8,7 +8,6 @@ import {createNewDirectory,deleteDirectory,expectElementExist,- getAttribute,getElementScreenshot,getGridFileSelector,openFolder,@@ -24,7 +23,6 @@ import {} from './hook';import {createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,deleteFileFromMenu,@@ -57,10 +55,8 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);await closeWelcomePlaywright();} else {@@ -73,7 +69,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST01 - Folder management', () => {- test('TST0101 - Create subfolder [web,minio,s3,electron]', async () => {+ test('TST0101 - Create subfolder [web,s3,electron]', async () => {const testFolder = await createNewDirectory();await global.client.dblclick('[data-tid=fsEntryName_' + testFolder + ']');await expectElementExist(@@ -93,7 +89,7 @@ test.describe('TST01 - Folder management', () => {);});- test('TST0102 - Reload folder [web,minio,s3,electron]', async () => {+ test('TST0102 - Reload folder [web,s3,electron]', async () => {const testFolder = await createNewDirectory();await global.client.dblclick('[data-tid=fsEntryName_' + testFolder + ']');await reloadDirectory();@@ -105,7 +101,7 @@ test.describe('TST01 - Folder management', () => {);});- test('TST0103 - Rename folder [web,minio,s3,electron]', async () => {+ test('TST0103 - Rename folder [web,s3,electron]', async () => {const testFolder = await createNewDirectory();await openFolder(testFolder);const newDirectoryName = await renameFolder();@@ -125,7 +121,7 @@ test.describe('TST01 - Folder management', () => {);});- test('TST0104 - Delete empty folder by disabled trashcan [web,minio,s3,electron]', async () => {+ test('TST0104 - Delete empty folder by disabled trashcan [web,s3,electron]', async () => {// await setSettings('[data-tid=settingsSetUseTrashCan]');const testFolder = await createNewDirectory();await global.client.dblclick('[data-tid=fsEntryName_' + testFolder + ']');@@ -137,14 +133,14 @@ test.describe('TST01 - Folder management', () => {);});- test('TST0105 - Open subfolder [web,minio,s3,electron]', async () => {+ test('TST0105 - Open subfolder [web,s3,electron]', async () => {await global.client.dblclick('[data-tid=fsEntryName_' + emptyFolderName + ']',);await expectElementExist(selectorFile, false, 5000);});- test('TST0106 - Show folder tags [web,minio,s3,electron]', async () => {+ test('TST0106 - Show folder tags [web,s3,electron]', async () => {await openContextEntryMenu('[data-tid=fsEntryName_empty_folder]','showProperties',@@ -165,7 +161,7 @@ test.describe('TST01 - Folder management', () => {test.skip('TST0107 - Show in file manager [manual]', async () => {});- test('TST0108 - Move folder [web,minio,s3,electron]', async ({+ test('TST0108 - Move folder [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -199,7 +195,7 @@ test.describe('TST01 - Folder management', () => {// await testDataRefresh(isS3, testDataDir);});- test('TST0109 - Copy folder [web,minio,s3,electron]', async ({+ test('TST0109 - Copy folder [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -230,13 +226,13 @@ test.describe('TST01 - Folder management', () => {// await testDataRefresh(isS3, testDataDir);});- test('TST0110 - Tag folder [web,minio,s3,electron]', async () => {+ test('TST0110 - Tag folder [web,s3,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,s3,electron]', async () => {+ test('TST0111 - Open folder properties [web,s3,electron]', async () => {await openContextEntryMenu('[data-tid=fsEntryName_empty_folder]','showProperties',@@ -249,7 +245,7 @@ test.describe('TST01 - Folder management', () => {expect(divText).toEqual('empty_folder');*/});- test('TST0112 - Delete non empty folder by disabled trashcan [web,minio,s3,electron]', async () => {+ test('TST0112 - Delete non empty folder by disabled trashcan [web,s3,electron]', async () => {await openContextEntryMenu('[data-tid=fsEntryName_empty_folder]','deleteDirectory',@@ -267,7 +263,7 @@ test.describe('TST01 - Folder management', () => {/*** in old minio preSigned URL for thumbnails cannot be opened SignatureDoesNotMatch error*/- test('TST0114 - Use as thumbnail for parent folder [minio,s3,electron,_pro]', async () => {+ test('TST0114 - Use as thumbnail for parent folder [electron,_pro]', async () => {//if (!isMinio || !isWeb) {// on Windows + Minio thumbnails is not displayed -> CORS//await global.client.waitForTimeout(10000000);@@ -299,30 +295,24 @@ test.describe('TST01 - Folder management', () => {);await expectElementExist(getGridFileSelector(fileName), true, 5000);- const folderThumbStyle = await getAttribute(- '[data-tid=folderThumbTID]',- 'style',- );- const initScreenshot = await getElementScreenshot(- '[data-tid=folderThumbTID]',- );-- // removing automatically set folder thumbnail+ // Clear auto-generated thumbnail to get a clean baselineawait clickOn('[data-tid=changeThumbnailTID]');await clickOn('[data-tid=clearThumbnail]');+ await global.client.waitForTimeout(1000);+ const clearedScreenshot = await getElementScreenshot(+ '[data-tid=folderThumbTID]',+ );++ // Auto-accept the "Thumbnail already exists, override?" confirm dialog+ global.client.once('dialog', (dialog) => dialog.accept());await openContextEntryMenu(getGridFileSelector(fileName), 'setAsThumbTID');- // await global.client.waitForTimeout(1000);- // const newStyle = await waitUntilChanged(- // '[data-tid=folderThumbTID]',- // folderThumbStyle,- // 'style',- // );+ await global.client.waitForTimeout(2000);const withThumbScreenshot = await getElementScreenshot('[data-tid=folderThumbTID]',);- expect(initScreenshot).not.toBe(withThumbScreenshot);+ expect(clearedScreenshot).not.toBe(withThumbScreenshot);// remove thumbawait clickOn('[data-tid=changeThumbnailTID]');@@ -332,19 +322,19 @@ test.describe('TST01 - Folder management', () => {timeout: 5000,state: 'hidden',});-- // await waitUntilChanged('[data-tid=folderThumbTID]', newStyle, 'style');+ await global.client.waitForTimeout(1000);const thumbRemovedScreenshot = await getElementScreenshot('[data-tid=folderThumbTID]',);- expect(initScreenshot).toBe(thumbRemovedScreenshot);+ // After clearing, the thumbnail should no longer show the custom image+ expect(withThumbScreenshot).not.toBe(thumbRemovedScreenshot);//cleanupawait deleteFileFromMenu(getGridFileSelector(fileName));await expectElementExist(getGridFileSelector(fileName), false, 2000);});- test('TST0116 - Switch to Grid Perspective [web,minio,s3,electron]', async () => {+ test('TST0116 - Switch to Grid Perspective [web,s3,electron]', async () => {await clickOn('[data-tid=openListPerspective]');await expectElementExist('[data-tid=listPerspectiveContainer]', true, 5000);await clickOn('[data-tid=openDefaultPerspective]');@@ -359,7 +349,7 @@ test.describe('TST01 - Folder management', () => {await clickOn('[data-tid=closePerspectiveSettingsTID]');});- test('TST0117 - Switch to List Perspective [web,minio,s3,electron]', async () => {+ test('TST0117 - Switch to List Perspective [web,s3,electron]', async () => {await clickOn('[data-tid=openListPerspective]');await expectElementExist('[data-tid=gridPerspectiveContainer]', false);await expectElementExist('[data-tid=listPerspectiveContainer]', true, 5000);@@ -370,7 +360,7 @@ test.describe('TST01 - Folder management', () => {);});- test('TST0118 - Switch to Gallery Perspective [web,minio,s3,electron,_pro]', async () => {+ test('TST0118 - Switch to Gallery Perspective [web,s3,electron,_pro]', async () => {await clickOn('[data-tid=openGalleryPerspective]');//await clickOn('[data-tid=openGalleryPerspective]');await expectElementExist(@@ -381,7 +371,7 @@ test.describe('TST01 - Folder management', () => {await expectElementExist('[data-tid=perspectiveGalleryHelp]', true, 5000);});- test('TST0119 - Switch to Mapique Perspective [web,minio,s3,electron,_pro]', async () => {+ test('TST0119 - Switch to Mapique Perspective [web,s3,electron,_pro]', async () => {await clickOn('[data-tid=openMapiquePerspective]');//await clickOn('[data-tid=openMapiquePerspective]');await expectElementExist(@@ -392,7 +382,7 @@ test.describe('TST01 - Folder management', () => {await expectElementExist('[data-tid=perspectiveMapiqueHelp]', true, 5000);});- test('TST0120 - Switch to Kanban Perspective [web,minio,s3,electron,_pro]', async () => {+ test('TST0120 - Switch to Kanban Perspective [web,s3,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.jsindex 3da16d5e3..17461ea0e 100644--- a/tests/e2e/folderprops.pw.e2e.js+++ b/tests/e2e/folderprops.pw.e2e.js@@ -41,7 +41,7 @@ test.afterEach(async ({ page }, testInfo) => {});test.beforeEach(- async ({ isMinio, isS3, testDataDir, isWeb, webServerPort }, testInfo) => {+ async ({ isS3, testDataDir, isWeb, webServerPort }, testInfo) => {if (isS3) {await startTestingApp({ isWeb, isS3, webServerPort, testInfo });await closeWelcomePlaywright();@@ -51,14 +51,14 @@ test.beforeEach('extconfig.js',);}- await createLocation({ isMinio, isS3, testDataDir });+ await createLocation({ isS3, testDataDir });await openFolderProp('empty_folder');},);test.describe('TST02 - Folder properties', () => {- test('TST0201 - Open in main area [web,minio,s3,electron]', async ({+ test('TST0201 - Open in main area [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -73,7 +73,7 @@ test.describe('TST02 - Folder properties', () => {await expectElementExist(getGridFileSelector(testFile), true, 5000);});- test('TST0204 - Reload folder from toolbar [web,minio,s3,electron]', async ({+ test('TST0204 - Reload folder from toolbar [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -133,7 +133,7 @@ test.describe('TST02 - Folder properties', () => {);});- test('TST0205 - Delete folder from toolbar [web,minio,s3,electron]', async ({+ test('TST0205 - Delete folder from toolbar [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -145,7 +145,7 @@ test.describe('TST02 - Folder properties', () => {await testDataRefresh(isS3, testDataDir);});- test('TST0206 - Rename folder [web,minio,s3,electron]', async () => {+ test('TST0206 - Rename folder [web,s3,electron]', async () => {const newTile = 'folderRenamed';await openFolder('empty_folder');@@ -174,7 +174,7 @@ test.describe('TST02 - Folder properties', () => {expect(propsOldFileName).toBe(propsFolderName);});- test('TST0207 - Move folder [web,minio,s3,electron]', async ({+ test('TST0207 - Move folder [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -191,10 +191,10 @@ test.describe('TST02 - Folder properties', () => {await testDataRefresh(isS3, testDataDir);});- test('TST0210 - Add and remove tag to folder with dropdown menu [web,minio,s3,electron]', async () => {+ test('TST0210 - Add and remove tag to folder with dropdown menu [web,s3,electron]', async () => {await AddRemovePropertiesTags(['test-tag1', 'test-tag2']);});- test('TST0211 - Add tag folder with DnD from tag library [web,minio,s3,electron]', async ({+ test('TST0211 - Add tag folder with DnD from tag library [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -221,7 +221,7 @@ test.describe('TST02 - Folder properties', () => {await testDataRefresh(isS3, testDataDir);});- test('TST0213 - Add description to folder [web,minio,s3,electron,_pro]', async () => {+ test('TST0213 - Add description to folder [web,s3,electron,_pro]', async () => {await addDescription('testDescription');await expectElementExist('[data-tid=gridCellDescription]',@@ -231,7 +231,7 @@ test.describe('TST02 - Folder properties', () => {);});- test('TST0215 - Link for internal sharing + copy [web,minio,s3,electron]', async () => {+ test('TST0215 - Link for internal sharing + copy [web,s3,electron]', async () => {const sharingLink = await global.client.waitForSelector('[data-tid=sharingLinkTID] input',);@@ -244,7 +244,7 @@ test.describe('TST02 - Folder properties', () => {await expectElementExist('[data-tid=currentDir_empty_folder]', true, 5000);});- test('TST0216 - Set gallery perspective as default for folder [web,minio,s3,electron,_pro]', async () => {+ test('TST0216 - Set gallery perspective as default for folder [web,s3,electron,_pro]', async () => {const fileName = 'sample.jpg';await openContextEntryMenu(getGridFileSelector(fileName),@@ -275,7 +275,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,s3,electron,_pro]', async () => {+ test('TST0218 - Set and remove predefined background gradient for folder [web,s3,electron,_pro]', async () => {await openFolder('empty_folder');await checkSettings('[data-tid=settingsSetShowUnixHiddenEntries]', false);const targetSelector = '[data-tid=backgroundTID]';@@ -317,7 +317,7 @@ test.describe('TST02 - Folder properties', () => {expect(initScreenshot).toBe(bgnRemovedScreenshot);});- test('TST0219 - Set and remove predefined folder thumbnail [web,minio,s3,electron,_pro]', async ({+ test('TST0219 - Set and remove predefined folder thumbnail [web,s3,electron,_pro]', async ({isWeb,isWin,}) => {@@ -356,7 +356,7 @@ test.describe('TST02 - Folder properties', () => {/*** bgnRemovedScreenshot not always the same on web*/- test('TST0220 - Set and remove predefined folder background [minio,s3,electron,_pro]', async () => {+ test('TST0220 - Set and remove predefined folder background [s3,electron,_pro]', async () => {await openFolderProp('empty_folder');await openFolder('empty_folder');diff --git a/tests/e2e/general.helpers.js b/tests/e2e/general.helpers.jsindex 9e6367f0a..5b3ec7e9c 100644--- a/tests/e2e/general.helpers.js+++ b/tests/e2e/general.helpers.js@@ -10,7 +10,6 @@ import { firstFile, openContextEntryMenu, toContainTID } from './test-utils';import fse from 'fs-extra';import {createPwLocation,- createPwMinioLocation,createS3Location,} from './location.helpers';@@ -419,7 +418,7 @@ export async function expectElementExist(}export async function createLocation(- { isMinio, isS3, testDataDir },+ { isS3, testDataDir },locationPath = '',locationName = defaultLocationName,isDefault = false,@@ -427,14 +426,7 @@ export async function createLocation(expectFolderExist = 'empty_folder',) {await clickOn('[data-tid=locationManager]');- if (isMinio) {- await createPwMinioLocation(- locationPath,- locationName,- isDefault,- fullTextIndexing,- );- } else if (isS3) {+ if (isS3) {await createS3Location(locationPath,locationName,@@ -454,7 +446,7 @@ export async function createLocation(await expectElementExist(getGridFileSelector(expectFolderExist),true,- 8000,+ 30000,);}}@@ -655,7 +647,7 @@ export async function setFileTypeExtension(}export async function expectMetaFileContain(- { testDataDir, isS3, isMinio },+ { testDataDir, isS3 },metaFile,rootFolder,contain,@@ -669,8 +661,8 @@ export async function expectMetaFileContain(await expectElementExist(getGridFileSelector(metaFile), true, timeout);await openFile(metaFile, 'showPropertiesTID');- if (isS3 || isMinio) {- await expectS3FileContain({ isMinio }, metaFile, rootFolder, contain);+ if (isS3) {+ await expectS3FileContain(metaFile, rootFolder, contain);} else {await expectLocalFileContain({ testDataDir },@@ -813,14 +805,13 @@ export async function expectLocalFileContain(}export async function expectS3FileContain(- { isMinio },fileName,rootFolder,txtToContain = 'etete&5435',) {const filePath = rootFolder + '/' + fileName; //pathLib.join(rootFolder,fileName); //testDataDir, rootFolder, fileName);- const content = await getS3File({ isMinio }, filePath);+ const content = await getS3File(filePath);const contentN = normalized(content);const txtToContainN = normalized(txtToContain);@@ -1077,7 +1068,7 @@ export async function reloadDirectory() {}export async function createNewDirectory(dirName = testFolder) {- await isDisplayed('[data-tid=folderContainerOpenDirMenu]', true, 3000);+ await isDisplayed('[data-tid=folderContainerOpenDirMenu]', true, 8000);await clickOn('[data-tid=folderContainerOpenDirMenu]');await clickOn('[data-tid=newSubDirectory]');// set new dir namediff --git a/tests/e2e/general.pw.e2e.js b/tests/e2e/general.pw.e2e.jsindex 42651a7de..c05498e09 100644--- a/tests/e2e/general.pw.e2e.js+++ b/tests/e2e/general.pw.e2e.js@@ -5,7 +5,6 @@ import { test, expect } from './fixtures';import AppConfig from '../../src/renderer/AppConfig';import {defaultLocationName,- createPwMinioLocation,createPwLocation,createS3Location,} from './location.helpers';@@ -71,11 +70,8 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await closeWelcomePlaywright();- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await closeWelcomePlaywright();await createS3Location('', defaultLocationName, true);} else {@@ -88,7 +84,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST51 - Perspective Grid', () => {- test('TST0501 - Create HTML file [web,minio,s3,electron]', async () => {+ test('TST0501 - Create HTML file [web,s3,electron]', async () => {// await global.client.waitForLoadState('networkidle');await createNewDirectory();await expectElementExist(@@ -114,7 +110,7 @@ test.describe('TST51 - Perspective Grid', () => {// await takeScreenshot('TST0501 after deleteDirectory');});- test('TST0502 - Create MD file [web,minio,s3,electron]', async () => {+ test('TST0502 - Create MD file [web,s3,electron]', async () => {await createNewDirectory();await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']',@@ -139,7 +135,7 @@ test.describe('TST51 - Perspective Grid', () => {// await takeScreenshot('TST0502 after deleteDirectory');});- test('TST0503 - Create TEXT file [web,minio,s3,electron]', async () => {+ test('TST0503 - Create TEXT file [web,s3,electron]', async () => {await createNewDirectory();await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']',@@ -164,7 +160,7 @@ test.describe('TST51 - Perspective Grid', () => {// await takeScreenshot('TST0503 after deleteDirectory');});- test('TST0510 - Generate thumbnail from Images [electron,minio,s3]', async () => {+ test('TST0510 - Generate thumbnail from Images [electron,s3]', async () => {const filtered = ['ico', 'tiff', 'tif', 'svg'];/*if (global.isMinio || global.isS3) {filtered.push('svg');@@ -176,7 +172,7 @@ test.describe('TST51 - Perspective Grid', () => {await expectMetaFilesExist(metaFiles);});- test('TST0510a - Generate thumbnail from JPG w. rotation from EXIF [web,minio,s3,electron]', async ({+ test('TST0510a - Generate thumbnail from JPG w. rotation from EXIF [web,s3,electron]', async ({isWin,isWeb,}) => {@@ -247,9 +243,9 @@ test.describe('TST51 - Perspective Grid', () => {await expectMetaFilesExist(['sample.pdf.jpg']);});/**- * todo not generated on S3 location+ * Thumbnails for ODT/ODS/EPUB are not generated on S3 locations*/- test('TST0517 - Generate thumbnail from ODT [electron,minio,_pro]', async () => {+ test('TST0517 - Generate thumbnail from ODT [electron,_pro]', async () => {await expectMetaFilesExist(['sample.odt.jpg','sample.ods.jpg',@@ -257,31 +253,31 @@ test.describe('TST51 - Perspective Grid', () => {]);});/**- * todo not generated on S3 location+ * Thumbnails for TIFF are not generated on S3 locations*/- test('TST0519 - Generate thumbnail from TIFF [electron,minio,_pro]', async () => {+ test('TST0519 - Generate thumbnail from TIFF [electron,_pro]', async () => {await expectMetaFilesExist(['sample.tiff.jpg']);});- test.skip('TST0520 - Generate thumbnail from PSD [electron,minio,s3,_pro]', async () => {+ test.skip('TST0520 - Generate thumbnail from PSD [electron,s3,_pro]', async () => {// TODO fixawait expectMetaFilesExist(['sample.psd.jpg']);});- test('TST0522 - Generate thumbnail from URL [electron,minio,s3,_pro]', async () => {+ test('TST0522 - Generate thumbnail from URL [electron,s3,_pro]', async () => {await expectMetaFilesExist(['sample.url.jpg']);});- test('TST0523 - Generate thumbnail from HTML [electron,minio,s3,_pro]', async () => {+ test('TST0523 - Generate thumbnail from HTML [electron,s3,_pro]', async () => {await expectMetaFilesExist(['sample.html.jpg']);});- test('TST0524 - Generate thumbnail from TXT,MD [electron,minio,s3,_pro]', async () => {+ test('TST0524 - Generate thumbnail from TXT,MD [electron,s3,_pro]', async () => {// MD thumbs generation is stoppedawait expectMetaFilesExist(['sample.txt.jpg']);});- test('TST0529 - Import EXIF information as Tags [web,minio,s3,electron,_pro]', async () => {+ test('TST0529 - Import EXIF information as Tags [web,s3,electron,_pro]', async () => {await openFile('sample_exif[iptc].jpg', 'showPropertiesTID');await clickOn('[data-tid=openGalleryPerspective]');@@ -303,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,s3,electron,_pro]', async () => {+ test('TST0530 - Adding sidecar geo or custom date tag with dnd [web,s3,electron,_pro]', async () => {const tagName = 'custom-date';const sourceTagGroup = 'Smart Tags';diff --git a/tests/e2e/hook.js b/tests/e2e/hook.jsindex d33f2d027..3f326f1be 100644--- a/tests/e2e/hook.js+++ b/tests/e2e/hook.js@@ -285,8 +285,29 @@ export async function startTestingApp(// Get the first window that the app opens, wait if necessary.global.client = await global.app.firstWindow();// global.session = await global.client.context().newCDPSession(global.client);+ // Move to second display if available, then resize+ await global.app.evaluate(+ async ({ BrowserWindow, screen }, { w, h }) => {+ const win = BrowserWindow.getAllWindows()[0];+ if (!win) return;+ const displays = screen.getAllDisplays();+ const primaryId = screen.getPrimaryDisplay().id;+ const secondary = displays.find((d) => d.id !== primaryId);+ if (secondary) {+ const { x, y, width, height } = secondary.workArea;+ // Center the window on the secondary display+ const posX = x + Math.round((width - w) / 2);+ const posY = y + Math.round((height - h) / 2);+ win.setBounds({ x: posX, y: posY, width: w, height: h });+ } else {+ win.setSize(w, h);+ win.center();+ }+ },+ { w: windowWidth, h: windowHeight },+ );// Setting the viewport size helps keep test environments consistent.- await global.client.setViewportSize({ width: windowWidth, height: windowHeight }); //{width: 1200,height: 800} ({ width: 800, height: 600 });+ await global.client.setViewportSize({ width: windowWidth, height: windowHeight });await global.client.waitForLoadState('load'); //'domcontentloaded'); //'networkidle');if (process.env.SHOW_CONSOLE) {@@ -311,7 +332,6 @@ export async function testDataRefresh(isS3, testDataDir) {if (isS3) {//console.log('testDataDir:'+testDataDir);await refreshS3testData(testDataDir);- //} else (isMinio){ todo minio} else {await fse.rm(testDataDir, {recursive: true,diff --git a/tests/e2e/html.editor.pw.e2e.js b/tests/e2e/html.editor.pw.e2e.jsindex 973af2656..37d7ddce6 100644--- a/tests/e2e/html.editor.pw.e2e.js+++ b/tests/e2e/html.editor.pw.e2e.js@@ -1,6 +1,5 @@import { test, expect } from './fixtures';import {- createPwMinioLocation,createPwLocation,defaultLocationName,createS3Location,@@ -25,15 +24,12 @@ test.afterEach(async ({ page }, testInfo) => {});test.beforeEach(- async ({ isMinio, isS3, isWeb, webServerPort, testDataDir }, testInfo) => {+ async ({ isS3, isWeb, webServerPort, testDataDir }, testInfo) => {await startTestingApp({ isWeb, isS3, webServerPort, testInfo },- isMinio || isS3 ? undefined : 'extconfig.js',+ isS3 ? undefined : 'extconfig.js',);- if (isMinio) {- await closeWelcomePlaywright();- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await closeWelcomePlaywright();await createS3Location('', defaultLocationName, true);} else {diff --git a/tests/e2e/json.editor.pw.e2e.js b/tests/e2e/json.editor.pw.e2e.jsindex 89ef07ed6..02a06d1af 100644--- a/tests/e2e/json.editor.pw.e2e.js+++ b/tests/e2e/json.editor.pw.e2e.js@@ -1,6 +1,5 @@import { test, expect } from './fixtures';import {- createPwMinioLocation,createPwLocation,defaultLocationName,createS3Location,@@ -25,15 +24,12 @@ test.afterEach(async () => {});test.beforeEach(- async ({ isMinio, isS3, isWeb, webServerPort, testDataDir }, testInfo) => {+ async ({ isS3, isWeb, webServerPort, testDataDir }, testInfo) => {await startTestingApp({ isWeb, isS3, webServerPort, testInfo },- isMinio || isS3 ? undefined : 'extconfig.js',+ isS3 ? undefined : 'extconfig.js',);- if (isMinio) {- await closeWelcomePlaywright();- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await closeWelcomePlaywright();await createS3Location('', defaultLocationName, true);} else {diff --git a/tests/e2e/key-bindings.pw.e2e.js b/tests/e2e/key-bindings.pw.e2e.jsindex 7207c8c14..abeb90a03 100644--- a/tests/e2e/key-bindings.pw.e2e.js+++ b/tests/e2e/key-bindings.pw.e2e.js@@ -4,7 +4,6 @@import { test, expect } from './fixtures';import {createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,} from './location.helpers';@@ -44,10 +43,8 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -59,14 +56,14 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST13 - Settings Key Bindings [electron]', () => {- test('TST1311 - Test show search [electron,minio,s3]', async () => {+ test('TST1311 - Test show search [electron,s3]', async () => {await clickOn(selectorFile);await global.client.keyboard.press('ControlOrMeta+KeyF'); //('ControlOrMeta+KeyK');await global.client.keyboard.press('ControlOrMeta+KeyK'); // on Macawait expectElementExist('#textQuery', true, 5000);});- test('TST1312 - Test rename file [electron,minio,s3]', async () => {+ test('TST1312 - Test rename file [electron,s3]', async () => {const newTitle = 'renamed.pdf';await clickOn(getGridFileSelector(testFileName));await global.client.keyboard.press('F2');@@ -85,13 +82,13 @@ test.describe('TST13 - Settings Key Bindings [electron]', () => {await expectElementExist(getGridFileSelector(oldName), true, 5000);});- test('TST1313 - Test open file [electron,minio,s3]', async () => {+ test('TST1313 - Test open file [electron,s3]', async () => {await clickOn(getGridFileSelector(testFileName));await global.client.keyboard.press('Enter');await expectElementExist('[data-tid=detailsTabTID]', true, 5000);});- test('TST1315 - Test delete file [electron,minio,s3]', async () => {+ test('TST1315 - Test delete file [electron,s3]', async () => {await clickOn(getGridFileSelector(testFileName));if (isMac) {await global.client.keyboard.press('F8');@@ -102,7 +99,7 @@ test.describe('TST13 - Settings Key Bindings [electron]', () => {await expectElementExist(getGridFileSelector(testFileName), false);});- test('TST1316 - Show help and feedback panel in the left [electron,minio,s3]', async () => {+ test('TST1316 - Show help and feedback panel in the left [electron,s3]', async () => {await clickOn(getGridFileSelector('sample.txt'));await global.client.keyboard.press('F1');await expectElementExist('[data-tid=aboutDialog]', true);diff --git a/tests/e2e/location.helpers.js b/tests/e2e/location.helpers.jsindex 3d333d82d..75584526e 100644--- a/tests/e2e/location.helpers.js+++ b/tests/e2e/location.helpers.js@@ -13,42 +13,6 @@ import { openContextEntryMenu } from './test-utils';export const defaultLocationName = 'supported-filestypes';export const perspectiveGridTable = '//*[@data-tid="perspectiveGridFileTable"]';export const newLocationName = 'Location Name Changed';-export const minioAccessKey = 'minioadmin';-export const minioSecretAccessKey = 'minioadmin';-export const minioEndpointURL = 'http://127.0.0.1:9000';--export async function createPwMinioLocation(- locationPath,- locationName,- isDefault = false,- fullTextIndexing = false,-) {- const lastLocationTID = await getPwLocationTid(-1);- // Check if location not exist (from extconfig.js)- if (locationName !== lastLocationTID) {- await clickOn('[data-tid=locationManagerMenu]');- await clickOn('[data-tid=locationManagerMenuCreateLocation]');- await clickOn('[data-tid=locationTypeTID]');- await clickOn('[data-tid=cloudLocationTID]');-- await setInputValue('[data-tid=locationName] input', locationName || 'Test Location' + new Date().getTime(),);- await setInputValue('[data-tid=locationPath] input', locationPath);- await setInputValue('[data-tid=accessKeyId] input', minioAccessKey);- await setInputValue('[data-tid=secretAccessKey] input', minioSecretAccessKey);- await setInputValue('[data-tid=bucketName] input', 'supported-filestypes');- await setInputValue('[data-tid=endpointURL] input', minioEndpointURL);-- if (isDefault) {- await clickOn('[data-tid=switchAdvancedModeTID]');- await global.client.check('[data-tid=locationIsDefault] input');- }-- if (fullTextIndexing) {- await global.client.check('[data-tid=changeFullTextIndex] input');- }- await clickOn('[data-tid=confirmLocationCreation]');- }-}export async function createS3Location(locationPath,@@ -66,8 +30,8 @@ export async function createS3Location(await setInputValue('[data-tid=locationName] input', locationName || 'Test Location' + new Date().getTime(),);await setInputValue('[data-tid=locationPath] input', locationPath);- await setInputValue('[data-tid=accessKeyId] input', 'S3RVER');- await setInputValue('[data-tid=secretAccessKey] input', 'S3RVER');+ await setInputValue('[data-tid=accessKeyId] input', 'test');+ await setInputValue('[data-tid=secretAccessKey] input', 'test');await setInputValue('[data-tid=bucketName] input', 'supported-filestypes');await setInputValue('[data-tid=endpointURL] input', 'http://localhost:4569');diff --git a/tests/e2e/location.pw.e2e.js b/tests/e2e/location.pw.e2e.jsindex b0c40dede..b354382b8 100644--- a/tests/e2e/location.pw.e2e.js+++ b/tests/e2e/location.pw.e2e.js@@ -18,7 +18,6 @@ import {import { startTestingApp, stopApp } from './hook';import {createPwLocation,- createPwMinioLocation,createS3Location,getPwLocationTid,openLocationMenu,@@ -50,12 +49,10 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {+test.beforeEach(async ({ isS3, testDataDir }) => {testLocationName = '' + new Date().getTime();- if (isMinio) {- await createPwMinioLocation('', testLocationName, true);- } else if (isS3) {+ if (isS3) {await createS3Location('', testLocationName, true);} else {await createPwLocation(testDataDir, testLocationName, true);@@ -68,7 +65,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST03 - Testing locations:', () => {- test('TST0301 - Should create a location [web,minio,s3,electron]', async () => {+ test('TST0301 - Should create a location [web,s3,electron]', async () => {await expectElementExist('[data-tid=location_' + testLocationName + ']',true,@@ -76,7 +73,7 @@ test.describe('TST03 - Testing locations:', () => {);});- test('TST0302 - Should remove a location [web,minio,s3,electron]', async () => {+ test('TST0302 - Should remove a location [web,s3,electron]', async () => {await expectElementExist('[data-tid=location_' + testLocationName + ']',true,@@ -94,7 +91,7 @@ test.describe('TST03 - Testing locations:', () => {await expectElementExist('[data-tid=WelcomePanelTID]', true);});- test('TST0303 - Rename location [web,minio,s3,electron]', async () => {+ test('TST0303 - Rename location [web,s3,electron]', async () => {await openLocationMenu(testLocationName);await clickOn('[data-tid=editLocation]');await global.client.dblclick('[data-tid=locationName] input');@@ -108,7 +105,7 @@ test.describe('TST03 - Testing locations:', () => {);});- test('TST0305 - Set as startup location [web,minio,s3,electron]', async () => {+ test('TST0305 - Set as startup location [web,s3,electron]', async () => {await openLocationMenu(testLocationName);await startupLocation();await expectElementExist('[data-tid=startupIndication]', false);@@ -127,16 +124,13 @@ test.describe('TST03 - Testing locations:', () => {// TODO test duplication warning on creating locations});- test('TST0307 - Move location Up and Down [web,minio,s3,electron]', async ({+ test('TST0307 - Move location Up and Down [web,s3,electron]', async ({isWeb,- isMinio,isS3,}) => {if (isWeb) {// in web there is no other locations- if (isMinio) {- await createPwMinioLocation('', 'dummyLocation', false);- } else if (isS3) {+ if (isS3) {await createS3Location('empty_folder');}}@@ -153,14 +147,13 @@ test.describe('TST03 - Testing locations:', () => {expect(lastLocation).toBe(testLocationName);});- test('TST0328 - Creating location index [web,minio,s3,electron,_pro]', async ({+ test('TST0328 - Creating location index [web,electron,_pro]', async ({isS3,- isMinio,isWeb,testDataDir,}) => {test.setTimeout(520000);- const props = { isS3, isMinio, testDataDir };+ const props = { isS3, testDataDir };const file1 = 'test_file1[tag1 tag2].md'; // todo sidecar tags + idsconst file1content = 'test md file 1';const file1desc = 'test file 1 desc';@@ -210,7 +203,7 @@ test.describe('TST03 - Testing locations:', () => {const rootFolder = locationFolderName + '/' + AppConfig.metaFolder;// await global.client.waitForTimeout(180000);await expectMetaFileContain(- { testDataDir, isS3, isMinio },+ { testDataDir, isS3 },'tsi.json',rootFolder,indexFileContent,diff --git a/tests/e2e/markdown-editor.pw.e2e.js b/tests/e2e/markdown-editor.pw.e2e.jsindex 685e52781..854b03256 100644--- a/tests/e2e/markdown-editor.pw.e2e.js+++ b/tests/e2e/markdown-editor.pw.e2e.js@@ -4,7 +4,6 @@import { test, expect } from './fixtures';import {defaultLocationName,- createPwMinioLocation,createPwLocation,createS3Location,} from './location.helpers';@@ -39,11 +38,9 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {+test.beforeEach(async ({ isS3, testDataDir }) => {await closeWelcomePlaywright();- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -55,7 +52,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST69 - Markdown editor', () => {- test('TST6901 - Open and render md file [web,minio,s3,electron]', async () => {+ test('TST6901 - Open and render md file [web,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.md'),'fileMenuOpenFile',@@ -76,7 +73,7 @@ test.describe('TST69 - Markdown editor', () => {.toBe(true);});- test('TST6902 - Open settings [web,minio,s3,electron]', async () => {+ test('TST6902 - Open settings [web,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 e1c4fbfed..0e094db2e 100644--- a/tests/e2e/objectstore.pw.e2e.js+++ b/tests/e2e/objectstore.pw.e2e.js@@ -13,7 +13,7 @@ import { openContextEntryMenu } from './test-utils';import { dataTidFormat } from '../../src/renderer/services/test';import { clearDataStorage } from './welcome.helpers';-test.beforeAll(async ({ isWeb, isS3, isMinio, webServerPort }, testInfo) => {+test.beforeAll(async ({ isWeb, isS3, webServerPort }, testInfo) => {/*if (isS3) {await startTestingApp({ isWeb, isS3, webServerPort, testInfo });await closeWelcomePlaywright();@@ -34,11 +34,8 @@ test.afterEach(async () => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3 }) => {- if (isMinio) {- //await createPwMinioLocation('', defaultLocationName, true);- await clickOn('[data-tid=location_' + defaultLocationName + '-minio]');- } else if (isS3) {+test.beforeEach(async ({ isS3 }) => {+ if (isS3) {//await createS3Location('', defaultLocationName, true);await clickOn('[data-tid=location_' + defaultLocationName + '-s3]');}@@ -46,7 +43,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,s3,_pro]', async () => {+ test('TST0917 - Create, open and remove bookmark to S3 file in properties [web,s3,_pro]', async () => {const bookmarkFileTitle = 'sample.txt';const bookmarkFileTid = dataTidFormat(bookmarkFileTitle);await openContextEntryMenu(diff --git a/tests/e2e/perspective-gallery.pw.e2e.js b/tests/e2e/perspective-gallery.pw.e2e.jsindex b18257b83..d8569b10d 100644--- a/tests/e2e/perspective-gallery.pw.e2e.js+++ b/tests/e2e/perspective-gallery.pw.e2e.js@@ -4,7 +4,6 @@import { test, expect } from './fixtures';import {defaultLocationName,- createPwMinioLocation,createPwLocation,createS3Location,} from './location.helpers';@@ -40,10 +39,8 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -54,7 +51,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST51 - Perspective openGalleryPerspective', () => {- test('TST5120 - prev/next button [web,minio,s3,electron,_pro]', async () => {+ test('TST5120 - prev/next button [web,s3,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.jsindex f85614a0a..215c3d9fe 100644--- a/tests/e2e/perspective-grid-right-button.pw.e2e.js+++ b/tests/e2e/perspective-grid-right-button.pw.e2e.js@@ -28,7 +28,6 @@ import {import { startTestingApp, stopApp, testDataRefresh } from './hook';import {createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,deleteFileFromMenu,@@ -64,10 +63,8 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -80,7 +77,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {// Test the functionality of the right button on a file on a grid perspective table// Scenarios for right button on a filetest.describe('TST50** - Right button on a file', () => {- test('TST5016 - Open file [web,minio,s3,electron]', async () => {+ test('TST5016 - Open file [web,s3,electron]', async () => {await openFile('sample.txt');await expect.poll(@@ -98,7 +95,7 @@ test.describe('TST50** - Right button on a file', () => {.toBe(true);});- test('TST5017 - Rename file and check thumbnail exist [web,minio,s3,electron]', async () => {+ test('TST5017 - Rename file and check thumbnail exist [web,s3,electron]', async () => {const newFileName = 'newFileName';const fileExtension = '.jpeg';// await searchEngine('txt');@@ -127,7 +124,7 @@ test.describe('TST50** - Right button on a file', () => {await expectMetaFilesExist([oldName + '.jpg']);});- test('TST5018 - Delete file [web,minio,s3,electron]', async () => {+ test('TST5018 - Delete file [web,s3,electron]', async () => {// await createTxtFile();// await searchEngine('note'); //select new created file - note[date_created].txtconst fileName = 'sample.html'; // await getGridFileName(-1);@@ -141,7 +138,7 @@ test.describe('TST50** - Right button on a file', () => {expect(firstFileName).toBe(undefined); */});- test('TST5019 - Rename tag in file [web,minio,s3,electron]', async ({+ test('TST5019 - Rename tag in file [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -194,7 +191,7 @@ test.describe('TST50** - Right button on a file', () => {);*/});- test('TST5023 - Remove tag from file (tag menu) [web,minio,s3,electron]', async () => {+ test('TST5023 - Remove tag from file (tag menu) [web,s3,electron]', async () => {// await searchEngine('desktop');// select fileawait clickOn(selectorFile);@@ -265,7 +262,7 @@ test.describe('TST50** - Right button on a file', () => {await AddRemoveTagsToSelectedFiles([testTagName], false); */});- test('TST5025 - Add - Remove tags (file menu) [web,minio,s3,electron]', async () => {+ test('TST5025 - Add - Remove tags (file menu) [web,s3,electron]', async () => {// await searchEngine('desktop');const fileName = 'sample.desktop';const tags = [testTagName, testTagName + '2'];@@ -300,25 +297,15 @@ test.describe('TST50** - Right button on a file', () => {// await expectTagsExistBySelector(selectorFile, tags, false);});- test('TST5026 - Open file natively [minio,s3,electron]', async ({- isMinio,- }) => {- if (!isMinio) {- // Open file natively option is missing for Minio Location- await searchEngine('txt');- await openContextEntryMenu(selectorFile, 'fileMenuOpenFileNatively');- }+ test('TST5026 - Open file natively [s3,electron]', async () => {+ await searchEngine('txt');+ await openContextEntryMenu(selectorFile, 'fileMenuOpenFileNatively');// check parent directory});- test('TST5027 - Open containing folder [web,minio,s3,electron]', async ({- isMinio,- }) => {- if (!isMinio) {- // Show in File Manager option is missing for Minio Location- await searchEngine('txt');- await openContextEntryMenu(selectorFile, 'fileMenuOpenContainingFolder');- }+ test('TST5027 - Open containing folder [web,s3,electron]', async () => {+ await searchEngine('txt');+ await openContextEntryMenu(selectorFile, 'fileMenuOpenContainingFolder');// check parent directory});@@ -339,7 +326,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,s3,electron]', async () => {+ test('TST5028 - Move - Copy file (file menu) [s3,electron]', async () => {// Move file in child folderconst fileName = 'sample.pdf';const folderName = 'empty_folder';@@ -382,14 +369,14 @@ 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,s3,electron]', async () => {+ test('TST5033 - Open directory (directory menu) [web,s3,electron]', async () => {await expectElementExist(selectorFile, true, 5000);// open empty_folderawait openContextEntryMenu(selectorFolder, 'openDirectory');await expectElementExist(selectorFile, false, 5000);});- test('TST5034 - Rename directory (directory menu) [web,minio,s3,electron]', async () => {+ test('TST5034 - Rename directory (directory menu) [web,s3,electron]', async () => {const newDirName = 'new_dir_name';const folder = getGridFileSelector('empty_folder');await openContextEntryMenu(folder, 'renameDirectory');@@ -417,7 +404,7 @@ test.describe('TST50** - Right button on a file', () => {/*** delete dir is not supported on minio*/- test('TST5035 - Delete directory (directory menu) [web,minio,s3,electron]', async () => {+ test('TST5035 - Delete directory (directory menu) [web,s3,electron]', async () => {// await setSettings('[data-tid=settingsSetUseTrashCan]');// await global.client.pause(500);await global.client.dblclick(getGridFileSelector('empty_folder'));@@ -435,12 +422,12 @@ test.describe('TST50** - Right button on a file', () => {// await expectElementExist(selectorFolder, true);});- test('TST5036 - Open directory properties (directory menu) [web,minio,s3,electron]', async () => {+ test('TST5036 - Open directory properties (directory menu) [web,s3,electron]', async () => {await openContextEntryMenu(selectorFolder, 'showProperties');await expectElementExist('[data-tid=fileNameProperties]', true, 5000);});- test('TST5037 - Show sub folders [web,minio,s3,electron]', async () => {+ test('TST5037 - Show sub folders [web,s3,electron]', async () => {// click on hide directoriesawait setGridOptions('grid', false);@@ -482,7 +469,7 @@ test.describe('TST50** - Right button on a file', () => {await expectElementExist(selectorFolder);});- test('TST5039 - Changing the Perspective View [web,minio,s3,electron]', async () => {+ test('TST5039 - Changing the Perspective View [web,s3,electron]', async () => {await expectElementExist(// '[data-tid=' + gridDefaultSettings.testID + ']','[data-tid=gridPerspectiveContainer]',@@ -498,14 +485,14 @@ test.describe('TST50** - Right button on a file', () => {);});- test('TST5040 - Create file [web,minio,s3,electron]', async () => {+ test('TST5040 - Create file [web,s3,electron]', async () => {const newFolder = await createNewDirectory('FolderForFileCreation');await openFolder(newFolder);await createTxtFile();await expectElementExist(selectorFile, true, 5000);});- test('TST5049 - Add/remove filename tags Placed at Start [web,minio,s3,electron]', async () => {+ test('TST5049 - Add/remove filename tags Placed at Start [web,s3,electron]', async () => {await setSettings('[data-tid=settingsSetPersistTagsInFileName]', true);await setSettings('[data-tid=fileNameBeginningTagTID]', true);diff --git a/tests/e2e/perspective-grid-sort.pw.e2e.js b/tests/e2e/perspective-grid-sort.pw.e2e.jsindex 35051e44a..a78fcc6e6 100644--- a/tests/e2e/perspective-grid-sort.pw.e2e.js+++ b/tests/e2e/perspective-grid-sort.pw.e2e.js@@ -4,7 +4,6 @@import { test, expect } from './fixtures';import {defaultLocationName,- createPwMinioLocation,createPwLocation,createS3Location,} from './location.helpers';@@ -42,10 +41,8 @@ test.afterAll(async () => {}});*/-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -59,7 +56,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {// Scenarios for sorting files in grid perspectivetest.describe('TST5003 - Testing sort files in the grid perspective', () => {- test('TST10xx - Sort by name [web,minio,s3,electron]', async ({+ test('TST10xx - Sort by name [web,s3,electron]', async ({testDataDir,}) => {// DESC@@ -81,7 +78,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective', () => {}});- test('TST10xx - Sort by size [web,minio,s3,electron]', async ({+ test('TST10xx - Sort by size [web,s3,electron]', async ({testDataDir,}) => {await clickOn('[data-tid=gridPerspectiveSortBySize]');@@ -102,7 +99,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective', () => {}});- test('TST10xx - Sort by date [web,minio,s3,electron]', async ({+ test('TST10xx - Sort by date [web,s3,electron]', async ({testDataDir,}) => {await clickOn('[data-tid=gridPerspectiveSortByDate]');@@ -124,7 +121,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective', () => {}});- test('TST10xx - Sort by extension [web,minio,s3,electron]', async ({+ test('TST10xx - Sort by extension [web,s3,electron]', async ({testDataDir,}) => {await clickOn('[data-tid=gridPerspectiveSortByExt]');@@ -143,7 +140,7 @@ test.describe('TST5003 - Testing sort files in the grid perspective', () => {}});- test('TST10xx - Sort by tags [web,minio,s3,electron]', async ({+ test('TST10xx - Sort by tags [web,s3,electron]', async ({testDataDir,}) => {await clickOn('[data-tid=gridPerspectiveSortByFirstTag]');diff --git a/tests/e2e/perspective-grid.pw.e2e.js b/tests/e2e/perspective-grid.pw.e2e.jsindex d2747213f..7bdc24874 100644--- a/tests/e2e/perspective-grid.pw.e2e.js+++ b/tests/e2e/perspective-grid.pw.e2e.js@@ -21,7 +21,6 @@ import {import { startTestingApp, stopApp } from './hook';import {createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,} from './location.helpers';@@ -51,10 +50,8 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -67,7 +64,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST50 - Perspective Grid', () => {- test('TST5002 - Open file with click [web,minio,s3,electron]', async () => {+ test('TST5002 - Open file with click [web,s3,electron]', async () => {// await searchEngine('txt'); //testTestFilename);const fileName = 'sample.txt';await openFile(fileName, 'showPropertiesTID');@@ -79,7 +76,7 @@ test.describe('TST50 - Perspective Grid', () => {// await checkFilenameForExist(testTestFilename);});- test('TST5004 - Select-deselect all files [web,minio,s3,electron]', async () => {+ test('TST5004 - Select-deselect all files [web,s3,electron]', async () => {await selectAllFiles();await expectAllFileSelected(true);await selectAllFiles();@@ -87,7 +84,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,s3,electron]', async () => {+ test('TST5005 - Add/Remove tags from selected files [web,s3,electron]', async () => {let selectedIds = await selectRowFiles([0, 1, 2]);const tags = ['test-tag1', 'test-tag2'];@@ -129,7 +126,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,s3,electron]', async () => {+ test('TST5007 - Remove all tags from selected files [web,s3,electron]', async () => {const selectedIds = await selectRowFiles([0, 1, 2]);const tags = ['test-tag1', 'test-tag2', 'test-tag3'];await AddRemoveTagsToSelectedFiles('grid', tags, true);@@ -155,7 +152,7 @@ test.describe('TST50 - Perspective Grid', () => {}});- test('TST5008 - Copy file [web,minio,s3,electron]', async () => {+ test('TST5008 - Copy file [web,s3,electron]', async () => {const fileName = 'sample.svg';await openFile(fileName, 'showPropertiesTID');// add meta json to file@@ -188,7 +185,7 @@ test.describe('TST50 - Perspective Grid', () => {test.skip('TST5009 - Copy file on different partition [manual]', async () => {});- test('TST5010 - Move file [web,minio,s3,electron]', async () => {+ test('TST5010 - Move file [web,s3,electron]', async () => {const fileName = 'sample.svg';//Toggle Propertiesawait openFile(fileName, 'showPropertiesTID');@@ -223,7 +220,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,s3,electron]', async () => {+ test('TST5013 - Delete files from selection (many files) [web,s3,electron]', async () => {const selectedIds = await selectRowFiles([0, 1, 2]);await clickOn('[data-tid=gridPerspectiveDeleteMultipleFiles]');@@ -241,7 +238,7 @@ test.describe('TST50 - Perspective Grid', () => {test.skip('TST5015 - Tag file drag&drop in perspective [manual]', async () => {});- test('TST5048 - prev/next button [web,minio,s3,electron]', async () => {+ test('TST5048 - prev/next button [web,s3,electron]', async () => {const fileName = 'sample.avif';const nextFileName = 'sample.bmp';await clickOn(getGridFileSelector(fileName));diff --git a/tests/e2e/perspective-kanban.pw.e2e.js b/tests/e2e/perspective-kanban.pw.e2e.jsindex 73aa4cb6f..0e61c273e 100644--- a/tests/e2e/perspective-kanban.pw.e2e.js+++ b/tests/e2e/perspective-kanban.pw.e2e.js@@ -25,7 +25,6 @@ import {} from './hook';import {createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,} from './location.helpers';@@ -61,10 +60,8 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -111,17 +108,17 @@ test.describe('TST49 - Perspective KanBan', () => {await expectElementExist('[data-tid=test_kanban_column1KanBanColumnTID]',true,- 5000,+ 15000,);await expectElementExist('[data-tid=test_kanban_column2KanBanColumnTID]',true,- 5000,+ 10000,);await expectElementExist('[data-tid=test_kanban_column3KanBanColumnTID]',true,- 5000,+ 10000,);await expectElementExist('[data-tid=test_kanban_column4KanBanColumnTID]',@@ -408,7 +405,7 @@ test.describe('TST49 - Perspective KanBan', () => {);});- test('TST4915a - Load thumbnails for board [web,minio,s3,electron,_pro]', async ({isWin}) => {+ test('TST4915a - Load thumbnails for board [web,s3,electron,_pro]', async ({isWin}) => {if(!isWin) {//board thumbnailawait setPerspectiveSetting(@@ -440,7 +437,7 @@ test.describe('TST49 - Perspective KanBan', () => {}});- test('TST4915b - Load thumbnails for column [web,minio,s3,electron,_pro]', async ({isWin}) => {+ test('TST4915b - Load thumbnails for column [web,s3,electron,_pro]', async ({isWin}) => {if(!isWin) {await setPerspectiveSetting('kanban',@@ -476,7 +473,7 @@ test.describe('TST49 - Perspective KanBan', () => {/*** todo web minio not work with thumbnails on Windows*/- test('TST4915c - Load thumbnails for cards [web,minio,s3,electron,_pro]', async ({isWin}) => {+ test('TST4915c - Load thumbnails for cards [web,s3,electron,_pro]', async ({isWin}) => {if(!isWin) {const columnName = 'empty_folder3';await createColumn(columnName);diff --git a/tests/e2e/quick-access.pw.e2e.js b/tests/e2e/quick-access.pw.e2e.jsindex ebf240a2d..08db7b8c9 100644--- a/tests/e2e/quick-access.pw.e2e.js+++ b/tests/e2e/quick-access.pw.e2e.js@@ -4,7 +4,6 @@import { test, expect } from './fixtures';import {defaultLocationName,- createPwMinioLocation,createPwLocation,createS3Location,} from './location.helpers';@@ -40,12 +39,10 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {+test.beforeEach(async ({ isS3, testDataDir }) => {await closeWelcomePlaywright();await clickOn('[data-tid=locationManager]');- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -57,7 +54,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST09 - Quick access', () => {- test('TST0901 - Create, rename and delete stored search [electron,minio,s3]', async () => {+ test('TST0901 - Create, rename and delete stored search [electron,s3]', async () => {const storedSearchTitle = 'jpgSearch';await createSavedSearch({ title: storedSearchTitle, textQuery: 'jpg' });//await expectElementExist('[data-tid=quickAccessButton]');@@ -82,7 +79,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0902 - Create, execute and delete stored search [electron,minio,s3]', async () => {+ test('TST0902 - Create, execute and delete stored search [electron,s3]', async () => {const storedSearchTitle = 'jpgExecutedSearch';const textQuery = 'jpg';await createSavedSearch({ title: storedSearchTitle, textQuery });@@ -105,7 +102,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0905 - Create, open and remove bookmark to file in properties [web,minio,s3,electron,_pro]', async () => {+ test('TST0905 - Create, open and remove bookmark to file in properties [web,s3,electron,_pro]', async () => {const bookmarkFileTitle = 'sample.txt';const bookmarkFileTid = dataTidFormat(bookmarkFileTitle);await openContextEntryMenu(@@ -139,7 +136,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0906 - Create, open and remove bookmark to folder in quickaccess [web,minio,s3,electron,_pro]', async () => {+ test('TST0906 - Create, open and remove bookmark to folder in quickaccess [web,s3,electron,_pro]', async () => {const testFolder = 'empty_folder';await rightClickOn('[data-tid=fsEntryName_' + testFolder + ']');await clickOn('[data-tid=showProperties]');@@ -184,7 +181,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0907 - Create 2 local bookmarks and delete all bookmarks [electron,minio,s3,_pro]', async () => {+ test('TST0907 - Create 2 local bookmarks and delete all bookmarks [electron,s3,_pro]', async () => {await clickOn('[data-tid=quickAccessButton]');const bookmarks = ['sample.txt', 'sample.jpg'];for (let i = 0; i < bookmarks.length; i++) {@@ -215,7 +212,7 @@ test.describe('TST09 - Quick access', () => {);}});- test('TST0908 - Add, open and remove recently opened file [web,minio,s3,electron,_pro]', async () => {+ test('TST0908 - Add, open and remove recently opened file [web,s3,electron,_pro]', async () => {// Addconst fileTitle = 'sample.jpg';const fileTid = dataTidFormat(fileTitle);@@ -245,7 +242,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0909 - Add 2 recently opened files and clear history [electron,minio,s3,_pro]', async () => {+ test('TST0909 - Add 2 recently opened files and clear history [electron,s3,_pro]', async () => {await clickOn('[data-tid=quickAccessButton]');if (!(await isDisplayed('[data-tid=fileCloseHistoryTID]'))) {await clickOn('[data-tid=fileOpenHistoryTID]');@@ -279,7 +276,7 @@ test.describe('TST09 - Quick access', () => {}});- test.skip('TST0910 - Add, open and remove recently edited file [web,minio,s3,electron,_pro]', async () => {+ test.skip('TST0910 - Add, open and remove recently edited file [web,s3,electron,_pro]', async () => {// Addconst fileTitle = 'sample.txt';const fileTid = dataTidFormat(fileTitle);@@ -309,7 +306,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0912 - Add, open and remove recently opened folder properties [web,minio,s3,electron,_pro]', async () => {+ test('TST0912 - Add, open and remove recently opened folder properties [web,s3,electron,_pro]', async () => {// Addconst testFolder = 'empty_folder';await rightClickOn('[data-tid=fsEntryName_' + testFolder + ']');@@ -345,7 +342,7 @@ test.describe('TST09 - Quick access', () => {);});- test('TST0913 - Add 2 recently opened folders and clear history [web,minio,s3,electron,_pro]', async () => {+ test('TST0913 - Add 2 recently opened folders and clear history [web,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 +390,7 @@ test.describe('TST09 - Quick access', () => {}});- test.skip('TST0914 - Add search to search history and search [web,minio,s3,electron]', async () => {+ test.skip('TST0914 - Add search to search history and search [web,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 01a349a0d..3c881eb98 100644--- a/tests/e2e/search.pw.e2e.js+++ b/tests/e2e/search.pw.e2e.js@@ -21,7 +21,6 @@ import {closeFileProperties,closeLocation,createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,} from './location.helpers';@@ -71,11 +70,9 @@ test.afterEach(async ({ page }, testInfo) => {await clearDataStorage();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {+test.beforeEach(async ({ isS3, testDataDir }) => {// await closeWelcomePlaywright();- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -87,7 +84,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST06 - Test Search in file structure:', () => {- test('TST0601 - Search in current location [web,minio,s3,electron]', async () => {+ test('TST0601 - Search in current location [web,s3,electron]', async () => {await global.client.dblclick('[data-tid=fsEntryName_' + emptyFolderName + ']',);@@ -144,7 +141,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,s3,electron]', async ({+ test('TST0609 - Show thumbnails of image files in the search results [web,s3,electron]', async ({isWin,isWeb,}) => {@@ -172,7 +169,7 @@ test.describe('TST06 - Test Search in file structure:', () => {}});- test('TST0621 - Search actions - open location [web,minio,s3,electron]', async () => {+ test('TST0621 - Search actions - open location [web,s3,electron]', async () => {//const firstLocationTID = await getPwLocationTid(0);await closeLocation(); //lastLocationTID);await expectElementExist('[data-tid=WelcomePanelTID]', true);@@ -181,13 +178,13 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist('[data-tid=currentDir_empty_folder]', true, 5000);});- test('TST0622 - Search actions - filter [web,minio,s3,electron]', async () => {+ test('TST0622 - Search actions - filter [web,s3,electron]', async () => {await searchEngine('f:txt', {}, false);const file = await getGridFileName(0);expect(file).toContain('txt');});- test('TST0623 - Search actions - history [web,minio,s3,electron,_pro]', async () => {+ test('TST0623 - Search actions - history [web,s3,electron,_pro]', async () => {const file = 'sample.txt';// add file to historyawait openContextEntryMenu(getGridFileSelector(file), 'fileMenuOpenFile');@@ -201,7 +198,7 @@ test.describe('TST06 - Test Search in file structure:', () => {);});- test('TST0624 - Search actions - bookmarks [web,minio,s3,electron,_pro]', async () => {+ test('TST0624 - Search actions - bookmarks [web,s3,electron,_pro]', async () => {const bookmarkFileTitle = 'sample.txt';await openContextEntryMenu(getGridFileSelector(bookmarkFileTitle),@@ -220,7 +217,7 @@ test.describe('TST06 - Test Search in file structure:', () => {);});- test('TST0625 - Search actions - execute query from stored searches [web,minio,s3,electron,_pro]', async () => {+ test('TST0625 - Search actions - execute query from stored searches [web,s3,electron,_pro]', async () => {const storedSearchTitle = 'jpgSearch';await createSavedSearch({ title: storedSearchTitle, textQuery: 'jpg' });await clickOn('#clearSearchID');@@ -233,7 +230,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('sample.pdf'), false, 5000);});- test('TST0626 - Search actions - execute query from search history [web,minio,s3,electron,_pro]', async () => {+ test('TST0626 - Search actions - execute query from search history [web,s3,electron,_pro]', async () => {await searchEngine('txt');await clickOn('#clearSearchID');await expectElementExist('#textQuery', false, 5000);@@ -244,7 +241,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('sample.jpg'), false, 5000);});- test('TST0627 - Search q. comp - AND tag NOT tag OR tag [web,minio,s3,electron]', async () => {+ test('TST0627 - Search q. comp - AND tag NOT tag OR tag [web,s3,electron]', async () => {// Add 3 files tagsconst file1 = 'txt';const tags1 = ['test-tag1'];@@ -322,7 +319,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getFileName(file3, tags3), false, 5000);});- test('TST0629 - Search q. comp - file size [web,minio,s3,electron,_pro]', async () => {+ test('TST0629 - Search q. comp - file size [web,s3,electron,_pro]', async () => {/*await openFolder('empty_folder');await expectElementExist(getGridFileSelector('empty_file.html'),@@ -342,7 +339,7 @@ test.describe('TST06 - Test Search in file structure:', () => {);});- test('TST0630 - Search q. comp - type [web,minio,s3,electron,_pro]', async () => {+ test('TST0630 - Search q. comp - type [web,s3,electron,_pro]', async () => {await addSearchCommand('t:', false);// choose image file typeawait clickOn('#textQuery-option-1');@@ -352,7 +349,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('sample.csv'), false, 5000);});- test('TST0631 - Search q. comp - last modified [web,minio,s3,electron,_pro]', async () => {+ test('TST0631 - Search q. comp - last modified [web,s3,electron,_pro]', async () => {await addSearchCommand('lm:', false);// choose option Todayawait clickOn('#textQuery-option-0');@@ -362,7 +359,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('sample.pdf'), true, 5000);});- test('TST0632 - Search q. comp - accuracy (fuzzy, semi strict, strict) [web,minio,s3,electron]', async ({+ test('TST0632 - Search q. comp - accuracy (fuzzy, semi strict, strict) [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -397,7 +394,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('note.txt'), true, 5000);});- test('TST0633 - Search q. comp - scope (location) [web,minio,s3,electron]', async () => {+ test('TST0633 - Search q. comp - scope (location) [web,s3,electron]', async () => {await addSearchCommand('sc:', false);await clickOn('#textQuery-option-0');await addSearchCommand('empty_file.html', true);@@ -416,7 +413,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('sample.html'), true, 5000);});- test('TST0634 - Search q. comp - scope (folder) [web,minio,s3,electron]', async () => {+ test('TST0634 - Search q. comp - scope (folder) [web,s3,electron]', async () => {//await global.client.dblclick('[data-tid=fsEntryName_empty_folder]');await openContextEntryMenu(getGridFileSelector('empty_folder'),@@ -429,7 +426,7 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(selectorFile, false, 5000);});- test('TST0635 - Search q. comp - scope (global) [web,minio,s3,electron]', async () => {+ test('TST0635 - Search q. comp - scope (global) [web,s3,electron]', async () => {// await clickOn('[data-tid=location_' + defaultLocationName + ']');await addSearchCommand('sc:', false);await clickOn('#textQuery-option-2');@@ -440,7 +437,7 @@ test.describe('TST06 - Test Search in file structure:', () => {/*** for web fulltext index is not created in tsi.json*/- test('TST0636 - Search q. fulltext in content [minio,s3,electron,_pro]', async ({+ test('TST0636 - Search q. fulltext in content [s3,electron,_pro]', async ({isS3,testDataDir,}) => {@@ -456,16 +453,16 @@ test.describe('TST06 - Test Search in file structure:', () => {await expectElementExist(getGridFileSelector('fulltext.txt'), true, 5000);});- test('TST0637 - Add/Remove sidecar tags in search results [web,minio,s3,electron]', async () => {+ test('TST0637 - Add/Remove sidecar tags in search results [web,s3,electron]', async () => {await setSettings('[data-tid=settingsSetPersistTagsInSidecarFile]', true);await addRemoveTagsInSearchResults(['sidecar-tag5', 'sidecar-tag6']);});- test('TST0638 - Add/Remove filename tags in search results [web,minio,s3,electron]', async () => {+ test('TST0638 - Add/Remove filename tags in search results [web,s3,electron]', async () => {await addRemoveTagsInSearchResults(['filename-tag5', 'filename-tag6']);});- test('TST0646 - Open directory from search results [web,minio,s3,electron]', async ({+ test('TST0646 - Open directory from search results [web,s3,electron]', async ({isS3,testDataDir,}) => {@@ -490,7 +487,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,s3,electron]', async () => {+ test('TST0647 - Search by new sidecar tag [web,s3,electron]', async () => {await setSettings('[data-tid=settingsSetPersistTagsInSidecarFile]', true);const tag = 'test-tag10';const fileName = 'sample';diff --git a/tests/e2e/tag.pw.e2e.js b/tests/e2e/tag.pw.e2e.jsindex 9bfa1f436..59d1d1066 100644--- a/tests/e2e/tag.pw.e2e.js+++ b/tests/e2e/tag.pw.e2e.js@@ -20,7 +20,6 @@ import {} from './hook';import {createPwLocation,- createPwMinioLocation,createS3Location,defaultLocationName,} from './location.helpers';@@ -59,17 +58,17 @@ test.beforeEach(async ({ isWeb, isS3, webServerPort }, testInfo) => {});test.describe('TST04 - Testing the tag library:', () => {- test('TST0401 - Should create a tag group [web,minio,s3,electron]', async () => {+ test('TST0401 - Should create a tag group [web,s3,electron]', async () => {await createTagGroup(testGroup);await deleteTagGroup(testGroup);});- test('TST0402 - Should delete tag group [web,minio,s3,electron]', async () => {+ test('TST0402 - Should delete tag group [web,s3,electron]', async () => {await createTagGroup(testGroup);await deleteTagGroup(testGroup);});- test('TST0403 - Rename tag group [web,minio,s3,electron]', async () => {+ test('TST0403 - Rename tag group [web,s3,electron]', async () => {await createTagGroup(testGroup);await clickOn('[data-tid=tagLibraryMoreButton_' + testGroup + ']');await clickOn('[data-tid=editTagGroup]');@@ -82,7 +81,7 @@ test.describe('TST04 - Testing the tag library:', () => {await deleteTagGroup(editedGroupName);});- test.skip('TST0404 - Change default tag group tag colors [web,minio,s3,electron]', async () => {+ test.skip('TST0404 - Change default tag group tag colors [web,s3,electron]', async () => {await createTagGroup(testGroup);await clickOn('[data-tid=tagLibraryMoreButton_' + testGroup + ']');await clickOn('[data-tid=editTagGroup]');@@ -122,7 +121,7 @@ test.describe('TST04 - Testing the tag library:', () => {await deleteTagGroup(testGroup);});*/- test('TST0405 - Add tag (s) Should add comma separated tags to a tag group [web,minio,s3,electron]', async () => {+ test('TST0405 - Add tag (s) Should add comma separated tags to a tag group [web,s3,electron]', async () => {await createTagGroup(testGroup);await clickOn('[data-tid=tagLibraryMoreButton_' + testGroup + ']');await addTags(arrTags);@@ -138,7 +137,7 @@ test.describe('TST04 - Testing the tag library:', () => {test.skip('TST0406 - Import tag groups [manual]', async () => {});- test('TST0407 - Should rename tag [web,minio,s3,electron]', async () => {+ test('TST0407 - Should rename tag [web,s3,electron]', async () => {await tagMenu('done', 'editTagDialog');await setInputValue('[data-tid=editTagInput] input', testTagName);await clickOn('[data-tid=editTagConfirm]');@@ -148,13 +147,13 @@ test.describe('TST04 - Testing the tag library:', () => {);});- test('TST0408 - Should delete tag from a tag group [web,minio,s3,electron]', async () => {+ test('TST0408 - Should delete tag from a tag group [web,s3,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,s3,electron]', async () => {+ test.skip('TST0409 - Should sort tags in a tag group lexicographically [web,s3,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 + '")]');@@ -162,7 +161,7 @@ test.describe('TST04 - Testing the tag library:', () => {// expect(editedTag).toBe(testTagName);});- test.skip('TST0410 - Default colors for tags from settings [web,minio,s3,electron]', async () => {+ test.skip('TST0410 - Default colors for tags from settings [web,s3,electron]', async () => {await clickOn('[data-tid=settings]');await clickOn('[data-tid=settingsToggleDefaultTagBackgroundColor]');const inputElem = await global.client.$(@@ -230,7 +229,7 @@ test.describe('TST04 - Testing the tag library:', () => {expect(style).toContain('rgb(208, 107, 100)');*/});- test.skip('TST0411 - Should move tag group down [minio,s3,electron]', async () => {+ test.skip('TST0411 - Should move tag group down [s3,electron]', async () => {await clickOn('[data-tid=tagLibraryMoreButton_ToDo_Workflow]');await clickOn('[data-tid=moveTagGroupDown]'); // TODO no test confirmation, expect// await global.client.getText('[data-tid=tagLibraryTagGroupList]').then((name) => {@@ -242,7 +241,7 @@ test.describe('TST04 - Testing the tag library:', () => {// });});- test.skip('TST0412 - Should move tag group up [minio,s3,electron]', async () => {+ test.skip('TST0412 - Should move tag group up [s3,electron]', async () => {await clickOn('[data-tid=tagLibraryMoreButton_Common_Tags]');await clickOn('[data-tid=moveTagGroupUp]'); // TODO no test confirmation// await global.client.getText('[data-tid=tagLibraryTagGroupList]').then((name) => {@@ -259,15 +258,14 @@ test.describe('TST04 - Testing the tag library:', () => {test.skip('TST0416 - Export tag groups / all / some [manual]', async () => {});- test('TST0417 - Collect tags from current location [web,minio,s3,electron,_pro]', async ({+ test('TST0417 - Collect tags from current location [web,s3,electron,_pro]', async ({isS3,- isMinio,testDataDir,}) => {const tagName = 'iptc';const tagGroup = 'ToDo_Workflow';- await createLocation({ isMinio, isS3, testDataDir });+ await createLocation({ isS3, testDataDir });await clickOn('[data-tid=tagLibrary]');await clickOn('[data-tid=tagLibraryMoreButton_' + tagGroup + ']');await clickOn('[data-tid=collectTags]');@@ -280,12 +278,11 @@ test.describe('TST04 - Testing the tag library:', () => {);});- test('TST0419 - Create location based tag group [web,minio,s3,electron,_pro]', async ({+ test('TST0419 - Create location based tag group [web,s3,electron,_pro]', async ({isS3,- isMinio,testDataDir,}) => {- await createLocation({ isMinio, isS3, testDataDir });+ await createLocation({ isS3, testDataDir });await clickOn('[data-tid=tagLibrary]');await checkSettings('[data-tid=saveTagInLocationTID]',@@ -301,13 +298,12 @@ test.describe('TST04 - Testing the tag library:', () => {await deleteTagGroup(testGroup);});- test('TST0420 - Load tag groups from location [web,minio,s3,electron, _pro]', async ({+ test('TST0420 - Load tag groups from location [web,s3,electron, _pro]', async ({isS3,- isMinio,testDataDir,}) => {const testTagName = 'Stanimir';- await createLocation({ isMinio, isS3, testDataDir });+ await createLocation({ isS3, testDataDir });if (isS3) {await createFileS3('tsl.json', tslContent, '.ts');@@ -333,7 +329,7 @@ test.describe('TST04 - Testing the tag library:', () => {);});- test('TST0421 - Move tag to another tag group with DnD [web,minio,s3,electron]', async () => {+ test('TST0421 - Move tag to another tag group with DnD [web,s3,electron]', async () => {const tagName = '1star';const sourceTagGroup = 'Ratings';const destinationTagGroup = 'Priorities';@@ -356,18 +352,15 @@ test.describe('TST04 - Testing the tag library:', () => {);});- test('TST0422 - Add custom date smarttag [web,minio,s3,electron,_pro]', async ({+ test('TST0422 - Add custom date smarttag [web,s3,electron,_pro]', async ({isS3,- isMinio,testDataDir,}) => {const tagName = 'custom-date';const sourceTagGroup = 'Smart Tags';await clickOn('[data-tid=locationManager]');- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -395,12 +388,11 @@ test.describe('TST04 - Testing the tag library:', () => {);});- test('TST0425 - Delete tag in location tag group and check tsl.json [web,minio,s3,electron,_pro]', async ({+ test('TST0425 - Delete tag in location tag group and check tsl.json [web,s3,electron,_pro]', async ({isS3,- isMinio,testDataDir,}) => {- await createLocation({ isMinio, isS3, testDataDir });+ await createLocation({ isS3, testDataDir });if (isS3) {await createFileS3('tsl.json', tslContent, '.ts');@@ -422,12 +414,11 @@ test.describe('TST04 - Testing the tag library:', () => {//TODO check in tsl.json content});- test('TST0426 - Rename tag in location tag group and check tsl.json [web,minio,s3,electron,_pro]', async ({+ test('TST0426 - Rename tag in location tag group and check tsl.json [web,s3,electron,_pro]', async ({isS3,- isMinio,testDataDir,}) => {- await createLocation({ isMinio, isS3, testDataDir });+ await createLocation({ isS3, testDataDir });if (isS3) {await createFileS3('tsl.json', tslContent, '.ts');diff --git a/tests/e2e/text.editor.pw.e2e.js b/tests/e2e/text.editor.pw.e2e.jsindex 1819ba6e6..89a17ba27 100644--- a/tests/e2e/text.editor.pw.e2e.js+++ b/tests/e2e/text.editor.pw.e2e.js@@ -1,6 +1,5 @@import { test, expect } from './fixtures';import {- createPwMinioLocation,createPwLocation,defaultLocationName,createS3Location,@@ -25,15 +24,12 @@ test.afterEach(async ({ page }, testInfo) => {});test.beforeEach(- async ({ isMinio, isS3, isWeb, webServerPort, testDataDir }, testInfo) => {+ async ({ isS3, isWeb, webServerPort, testDataDir }, testInfo) => {await startTestingApp({ isWeb, isS3, webServerPort, testInfo },- isMinio || isS3 ? undefined : 'extconfig.js',+ isS3 ? undefined : 'extconfig.js',);- if (isMinio) {- await closeWelcomePlaywright();- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+ if (isS3) {await closeWelcomePlaywright();await createS3Location('', defaultLocationName, true);} else {diff --git a/tests/e2e/viewer-audiovideo.pw.e2e.js b/tests/e2e/viewer-audiovideo.pw.e2e.jsindex 11f36130c..bb2698c62 100644--- a/tests/e2e/viewer-audiovideo.pw.e2e.js+++ b/tests/e2e/viewer-audiovideo.pw.e2e.js@@ -5,7 +5,6 @@import { test, expect } from './fixtures';import {defaultLocationName,- createPwMinioLocation,createPwLocation,createS3Location,} from './location.helpers';@@ -30,10 +29,8 @@ test.afterAll(async () => {await stopApp();});-test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {- if (isMinio) {- await createPwMinioLocation('', defaultLocationName, true);- } else if (isS3) {+test.beforeEach(async ({ isS3, testDataDir }) => {+ if (isS3) {await createS3Location('', defaultLocationName, true);} else {await createPwLocation(testDataDir, defaultLocationName, true);@@ -45,7 +42,7 @@ test.beforeEach(async ({ isMinio, isS3, testDataDir }) => {});test.describe('TST59 - Media player', () => {- test('TST5901 - Play ogg file [web,minio,s3,electron]', async () => {+ test('TST5901 - Play ogg file [web,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.ogg'),'fileMenuOpenFile',@@ -56,7 +53,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,s3,electron]', async ({ isWin }) => {+ test('TST5902 - Play ogv file [web,s3,electron]', async ({ isWin }) => {if (!isWin) {await openContextEntryMenu(getGridFileSelector('sample.ogv'),@@ -66,7 +63,7 @@ test.describe('TST59 - Media player', () => {}});- test('TST5903 - Open and close about dialog [web,minio,s3,electron]', async () => {+ test('TST5903 - Open and close about dialog [web,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.mp4'),'fileMenuOpenFile',@@ -98,7 +95,7 @@ test.describe('TST59 - Media player', () => {expect(aboutNotExists).toBeTruthy();});- test('TST5904 - Play mp3 [web,minio,s3,electron]', async () => {+ test('TST5904 - Play mp3 [web,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.mp3'),'fileMenuOpenFile',@@ -109,7 +106,7 @@ test.describe('TST59 - Media player', () => {/*** for mp4 codecs missing web on Chromium browser*/- test('TST5905 - Play webm [web,minio,s3,electron]', async ({+ test('TST5905 - Play webm [web,s3,electron]', async ({isWeb,isWin,}) => {@@ -130,7 +127,7 @@ test.describe('TST59 - Media player', () => {expect(playExists).toBeTruthy();*/});- test('TST5906 - Play flac [web,minio,s3,electron]', async () => {+ test('TST5906 - Play flac [web,s3,electron]', async () => {await openContextEntryMenu(getGridFileSelector('sample.flac'),'fileMenuOpenFile',@@ -138,7 +135,7 @@ test.describe('TST59 - Media player', () => {await expectMediaPlay(false);});- test('TST5911 - Play 3gp [web,minio,s3,electron]', async () => {+ test('TST5911 - Play 3gp [web,s3,electron]', async () => {/*await clickOn('[data-tid=settings]');await clickOn('[data-tid=fileTypeSettingsDialog]');const selectEl = global.client.locator('[data-tid=viewerTIDgif]');diff --git a/tests/s3proxy.conf b/tests/s3proxy.confnew file mode 100644index 000000000..43cd82352--- /dev/null+++ b/tests/s3proxy.conf@@ -0,0 +1,8 @@+s3proxy.authorization=none+s3proxy.endpoint=http://127.0.0.1:4569+s3proxy.ignore-unknown-headers=true+s3proxy.cors-allow-all=true+jclouds.provider=filesystem-nio2+jclouds.identity=test+jclouds.credential=test+jclouds.filesystem.basedir=/tmp/s3proxydiff --git a/tests/s3rver/S3DataRefresh.js b/tests/s3rver/S3DataRefresh.jsindex c6d587e81..70489be80 100644--- a/tests/s3rver/S3DataRefresh.js+++ b/tests/s3rver/S3DataRefresh.js@@ -4,7 +4,7 @@ const {S3Client,GetObjectCommand,PutObjectCommand,- DeleteObjectsCommand,+ DeleteObjectCommand,ListObjectsV2Command,} = require('@aws-sdk/client-s3');const bucketName = 'supported-filestypes';@@ -41,62 +41,57 @@ function getFilesRecursive(dirPath) {function getS3Client() {return new S3Client({region: 'eu-central-1',- endpoint: 'http://localhost:4569', // Adjust endpoint as needed+ endpoint: 'http://localhost:4569',+ // S3Proxy is configured with authorization=none, but AWS SDK requires credentialscredentials: {- accessKeyId: 'S3RVER',- secretAccessKey: 'S3RVER',+ accessKeyId: 'test',+ secretAccessKey: 'test',},- // Force path style required for local S3rverforcePathStyle: true,- //logger: console,- });-}--function getMinioClient() {- return new S3Client({- region: 'eu-central-1',- endpoint: 'http://127.0.0.1:9000', // Adjust endpoint as needed- credentials: {- accessKeyId: 'minioadmin',- secretAccessKey: 'minioadmin',- },- // Force path style required for local S3rver- forcePathStyle: true,- //logger: console,+ // S3Proxy does not support the CRC32 checksum header added by newer AWS SDK v3+ requestChecksumCalculation: 'WHEN_REQUIRED',+ responseChecksumValidation: 'WHEN_REQUIRED',});}async function deleteAllObjects(bucketName) {try {- // List objects in the bucket- const listParams = {- Bucket: bucketName,- MaxKeys: 10, // Limit the number of keys to 10 per request- };-const s3Client = getS3Client();++ // Collect all keys first, then sort so deepest paths (files inside dirs) are deleted+ // before their parent directory markers. This avoids DirectoryNotEmptyException+ // on filesystem-backed S3 implementations like S3Proxy.+ let allKeys = [];+ const listParams = { Bucket: bucketName, MaxKeys: 1000 };let listedObjects;do {listedObjects = await s3Client.send(new ListObjectsV2Command(listParams));+ if (listedObjects.Contents) {+ allKeys.push(...listedObjects.Contents.map((o) => o.Key));+ }+ listParams.ContinuationToken = listedObjects.NextContinuationToken;+ } while (listedObjects.IsTruncated);- if (!listedObjects.Contents || listedObjects.Contents.length === 0) break;-- // Prepare the list of objects to delete- const deleteParams = {- Bucket: bucketName,- Delete: {- Objects: listedObjects.Contents.map((object) => ({- Key: object.Key,- })),- },- };+ if (allKeys.length === 0) return;- // Delete objects- await s3Client.send(new DeleteObjectsCommand(deleteParams));+ // Sort by depth descending (deepest first), so children are deleted before parents+ allKeys.sort((a, b) => {+ const depthA = (a.match(/\//g) || []).length;+ const depthB = (b.match(/\//g) || []).length;+ return depthB - depthA;+ });- // If the list is truncated, set the continuation token to get the next batch of objects- listParams.ContinuationToken = listedObjects.NextContinuationToken;- } while (listedObjects.IsTruncated);+ // Delete one by one to avoid XML parsing issues with batch DeleteObjects+ // responses on S3-compatible backends (S3Proxy, S3rver)+ for (const key of allKeys) {+ try {+ await s3Client.send(+ new DeleteObjectCommand({ Bucket: bucketName, Key: key }),+ );+ } catch (err) {+ // Ignore errors for individual deletes (e.g. already deleted)+ }+ }console.log(`All objects in bucket "${bucketName}" have been deleted.`);} catch (error) {@@ -104,7 +99,7 @@ async function deleteAllObjects(bucketName) {}}-function getS3File({ isMinio }, filePath) {+function getS3File(filePath) {const key = filePath.replace(/\\/g, '/'); // Normalize path separators//const key = path.relative(directoryPath, filePath).replace(/\\/g, '/'); // Normalize path separators@@ -113,7 +108,7 @@ function getS3File({ isMinio }, filePath) {Key: key,ResponseCacheControl: 'no-cache',};- const s3Client = isMinio ? getMinioClient() : getS3Client();+ const s3Client = getS3Client();return s3Client.send(new GetObjectCommand(params)).then((data) => {@@ -184,7 +179,11 @@ function uploadTestDirectory(dirPath) {}async function refreshS3testData(testDataDir) {- await deleteAllObjects('supported-filestypes');+ try {+ await deleteAllObjects('supported-filestypes');+ } catch (error) {+ console.error('deleteAllObjects error:', error.message);+ }await uploadTestDirectory(testDataDir);}diff --git a/tests/s3rver/cors.xml b/tests/s3rver/cors.xmldeleted file mode 100644index 3939a5483..000000000--- a/tests/s3rver/cors.xml+++ /dev/null@@ -1,13 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">- <CORSRule>- <AllowedOrigin>*</AllowedOrigin>- <AllowedMethod>GET</AllowedMethod>- <AllowedMethod>PUT</AllowedMethod>- <AllowedMethod>POST</AllowedMethod>- <AllowedMethod>DELETE</AllowedMethod>- <AllowedMethod>HEAD</AllowedMethod>- <MaxAgeSeconds>3000</MaxAgeSeconds>- <AllowedHeader>*</AllowedHeader>- </CORSRule>-</CORSConfiguration>diff --git a/tests/setup-functions.js b/tests/setup-functions.jsindex 495b55eb3..424302c76 100644--- a/tests/setup-functions.js+++ b/tests/setup-functions.js@@ -4,14 +4,10 @@ import sh from 'shelljs';import express from 'express';import serveStatic from 'serve-static';import portfinder from 'portfinder';-const S3rver = require('s3rver');-//const corsConfig = require.resolve('./s3rver/cors.xml');+import http from 'http';export async function globalSetup() {- // global.isWin = /^win/.test(process.platform);- // global.isMac = /^darwin/.test(process.platform);-- const extensionDir = pathLib.resolve(__dirname); //,'../tests');+ const extensionDir = pathLib.resolve(__dirname);if (!sh.test('-d', extensionDir)) {sh.mkdir(extensionDir);}@@ -19,40 +15,106 @@ export async function globalSetup() {sh.cd(extensionDir);}-export async function startMinio(isWin, testWorkerDir) {- const winMinio = pathLib.resolve(__dirname, './bin/minio.exe');- const unixMinio = pathLib.resolve(__dirname, './bin/minio');+/**+ * Start S3Proxy (Java-based S3-compatible server) for a given test worker directory.+ *+ * @param {string} testWorkerDir Relative directory under tests/ (e.g. 'testdata-0')+ * @param {number} [port=4569] Port to listen on+ * @param {boolean} [silent=true] Suppress stdout+ * @returns {Promise<import('child_process').ChildProcess>}+ */+export async function runS3Proxy(testWorkerDir, port = 4569, silent = true) {+ const { spawn } = require('child_process');++ const baseDir = pathLib.resolve(+ __dirname,+ testWorkerDir,+ 'file-structure',+ );++ // Create the bucket directory if it doesn't exist+ const bucketDir = pathLib.join(baseDir, 'supported-filestypes');+ if (!fs.existsSync(bucketDir)) {+ fs.mkdirSync(bucketDir, { recursive: true });+ }- const command = isWin ? winMinio : unixMinio;- const minioProcess = await require('child_process').spawn(command, [- 'server',- pathLib.resolve(__dirname, testWorkerDir, 'file-structure'),+ // Write a per-worker config file+ const configPath = pathLib.resolve(+ __dirname,+ testWorkerDir,+ 's3proxy.conf',+ );+ fs.writeFileSync(+ configPath,+ [+ 's3proxy.authorization=none',+ `s3proxy.endpoint=http://127.0.0.1:${port}`,+ 's3proxy.ignore-unknown-headers=true',+ 's3proxy.cors-allow-all=true',+ 'jclouds.provider=filesystem-nio2',+ 'jclouds.identity=test',+ 'jclouds.credential=test',+ `jclouds.filesystem.basedir=${baseDir}`,+ ].join('\n') + '\n',+ );++ const jarPath = pathLib.resolve(__dirname, 's3proxy.jar');+ const s3proxyProcess = spawn('java', [+ '-jar',+ jarPath,+ '--properties',+ configPath,]);- minioProcess.on('exit', function (code) {- // console.log('exit here with code: ', code);+ s3proxyProcess.on('exit', function (code) {+ // console.log('S3Proxy exit with code:', code);});- minioProcess.on('close', (code, signal) => {- // console.log(`child process terminated due to receipt of signal ${signal}`);+ s3proxyProcess.on('close', (code, signal) => {+ // console.log(`S3Proxy terminated due to signal ${signal}`);});- minioProcess.stdout.on('data', function (data) {- // console.log('stdout: ' + data);+ if (!silent) {+ s3proxyProcess.stdout.on('data', function (data) {+ console.log('S3Proxy stdout: ' + data);+ });+ }++ s3proxyProcess.stderr.on('data', function (data) {+ if (!silent) {+ console.log('S3Proxy stderr: ' + data);+ }});- minioProcess.stderr.on('data', function (data) {- console.log('stderr: ' + data);+ // Wait for S3Proxy to be ready by polling the endpoint+ await waitForPort(port, 15000);+ console.log(`S3Proxy running on port ${port} for dir: ${baseDir}`);++ return s3proxyProcess;+}++/**+ * Poll until a port is accepting connections.+ */+function waitForPort(port, timeoutMs = 10000) {+ const start = Date.now();+ return new Promise((resolve, reject) => {+ const check = () => {+ const req = http.get(`http://127.0.0.1:${port}/`, (res) => {+ res.resume();+ resolve();+ });+ req.on('error', () => {+ if (Date.now() - start > timeoutMs) {+ reject(new Error(`S3Proxy did not start within ${timeoutMs}ms`));+ } else {+ setTimeout(check, 200);+ }+ });+ req.end();+ };+ check();});- return minioProcess;}-/*export function stopMinio(process) {- if (process) {- // Send SIGHUP to process.- console.log('stopMinio');- process.stdin.pause();- process.kill(); //'SIGHUP');- }-}*//*** Start a static file server on a free port.@@ -88,56 +150,3 @@ export async function startWebServer(preferredPort = 0) {server.on('error', reject);});}--/*export async function stopServices(s3Server, webServer, minioServer) {- await stopS3Server(s3Server);- await stopWebServer(webServer);- await stopMinio(minioServer);-}*/--/*export async function stopWebServer(app) {- if (app) {- await app.server.close();- app = null;- }-}*/--/*export async function stopS3Server(server) {- if (server) {- await server.close();- server = null;- }-}*/--export async function runS3Server(folder, silent = true) {- // Set NODE_OPTIONS environment variable to use openssl-legacy-provider- process.env.NODE_OPTIONS = '--openssl-legacy-provider';-- const directoryTargetPath = pathLib.resolve(- __dirname,- folder, //'testdata-tmp',- 'file-structure',- );- const corsConfig = pathLib.resolve(__dirname, 's3rver', 'cors.xml');- const instance = new S3rver({- port: 4569,- address: 'localhost',- silent: silent,- directory: directoryTargetPath,- resetOnClose: true,- sslEnabled: false,- configureBuckets: [- {- name: 'supported-filestypes',- configs: [fs.readFileSync(corsConfig)],- },- ],- });- try {- await instance.run();- console.log('S3rver running for folder:' + directoryTargetPath);- } catch (e) {- console.log('S3rver run', e);- }- return instance;-}