Skip to content

[PB-6531]: e2e coverage for the skip option in name collisions - #2150

Merged
terrerox merged 13 commits into
feat/skip-item-option-in-name-collisionfrom
test/name-collision-skip-e2e
Oct 7, 2026
Merged

terrerox merged 13 commits into
feat/skip-item-option-in-name-collisionfrom
test/name-collision-skip-e2e

Conversation

@terrerox

Copy link
Copy Markdown
Contributor

Description

Stacked on #2039. Playwright coverage for the Skip option: single and multiple duplicates, per-item vs. "apply to all", non-conflicting files still uploading while the dialog is open, and Replace trashing the matching file.

Auth, bootstrap and Drive endpoints are mocked so the specs run without a backend. The Drive mock is an in-memory list of files that answers listings and duplicate checks per folder and records trash and bridge requests; trashing removes the item so follow-up checks see the new state. Queued uploads are asserted through the task panel (a data-test hook on the panel) rather than bridge requests, because Playwright cannot intercept the bridge's CORS preflight in Firefox.

Also extracts the login mocks from the login spec into authRouteMocks.ts so both specs share them.

Related Issues

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

yarn playwright test test/e2e/tests/specs/DRIVE-internxt-name-collision-skip.spec.ts --project "Internxt E2E tests on chromium" with the dev server running.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: d6191a4
Status:⚡️  Build in progress...

View logs

@terrerox terrerox self-assigned this Sep 11, 2026
@terrerox
terrerox added this pull request to stack #2151 September 11, 2026 05:44
@terrerox
terrerox force-pushed the feat/skip-item-option-in-name-collision branch from 890333f to c327fed Compare September 15, 2026 03:33
@terrerox
terrerox force-pushed the test/name-collision-skip-e2e branch from ac46f0e to 0a5c069 Compare September 15, 2026 03:33
CandelR
CandelR previously approved these changes Sep 18, 2026
@terrerox
terrerox dismissed CandelR’s stale review September 27, 2026 23:57

The merge-base changed after approval.

@terrerox
terrerox force-pushed the feat/skip-item-option-in-name-collision branch from c327fed to dec3bf9 Compare September 27, 2026 23:57
@terrerox
terrerox force-pushed the test/name-collision-skip-e2e branch 2 times, most recently from 9bc8569 to 0207ead Compare September 30, 2026 02:25
@terrerox
terrerox force-pushed the feat/skip-item-option-in-name-collision branch 2 times, most recently from 8be0b5a to c4b1f37 Compare October 7, 2026 01:03
@terrerox
terrerox force-pushed the test/name-collision-skip-e2e branch from 0207ead to b794a53 Compare October 7, 2026 03:30
Covers single and multiple duplicates, per-item and apply-to-all skipping,
non-conflicting files still uploading, and Replace trashing the matching
file, with auth, bootstrap and Drive endpoints mocked so the specs run
without a backend. Queued uploads are asserted through the task panel
because Playwright cannot intercept the bridge in Firefox.
Skipping a colliding folder upload now keeps the existing folder and uploads only
the files and subfolders that do not exist yet, merging colliding subfolders
recursively so the folder structure is preserved.
Covers keep both for files and folders, replacing a folder, merging a
skipped folder into the existing one, replace, keep both and skip for
moved files, and versioned replace. The Drive mock now tracks folders,
folder creation, moves and a versioning flag; moves are driven by
dispatching the HTML5 drag events on the row's drop zone.
@terrerox
terrerox force-pushed the test/name-collision-skip-e2e branch from b794a53 to 4b0a43e Compare October 7, 2026 13:25
@terrerox
terrerox removed this pull request from stack #2151 October 7, 2026 13:28
…ge-on-skip

[PB-6531]: merge folder uploads into the existing folder on skip
@terrerox
terrerox merged commit 53ac5f2 into feat/skip-item-option-in-name-collision Oct 7, 2026
1 of 3 checks passed
@terrerox
terrerox deleted the test/name-collision-skip-e2e branch October 7, 2026 14:43
@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants