Skip to content

RI-7999 Add clone database E2E tests#5601

Open
pd-redis wants to merge 2 commits intomainfrom
e2e/RI-7999/clone-database
Open

RI-7999 Add clone database E2E tests#5601
pd-redis wants to merge 2 commits intomainfrom
e2e/RI-7999/clone-database

Conversation

@pd-redis
Copy link
Contributor

@pd-redis pd-redis commented Mar 5, 2026

What

Add 8 Playwright E2E tests for cloning database connections (TEST_PLAN.md section 1.3). Tests cover pre-populated form verification, cloning with same/new name, cancel and back navigation, cluster database cloning, badge verification, and list presence after cloning.

Sentinel clone test left as not-implemented since it requires Sentinel infrastructure.

Testing

  • Run npx playwright test tests/main/databases/clone/clone-database.spec.ts with local Redis instances (standalone + cluster)

Closes #RI-7999

Made with Cursor


Note

Low Risk
Test-only changes; main risk is potential CI flakiness due to new UI/E2E assertions and reliance on standalone/cluster test Redis instances.

Overview
Adds a new Playwright spec (clone-database.spec.ts) that exercises the Edit → Clone flow for standalone and OSS cluster connections, including form prefill checks, cloning with same/new names, cancel/back navigation, and post-clone validations (list presence and "New" badge).

Updates TEST_PLAN.md section 1.3 Clone Database to mark these clone scenarios as implemented, leaving the Sentinel clone case still unimplemented.

Written by Cursor Bugbot for commit 6bdcd05. This will update automatically on new commits. Configure here.

Add 8 Playwright E2E tests for cloning database connections:
pre-populated form, same/new name, cancel, back to edit, cluster,
badge verification, and list presence.

References: #RI-7999
Made-with: Cursor
@jit-ci
Copy link

jit-ci bot commented Mar 5, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Refactor the afterEach hook to ensure proper cleanup of cloned databases. The updated logic checks for known database IDs to avoid deleting essential databases and handles cases where no cloned names exist.

References: #RI-7999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant