Skip to content

RI-8003 Add encryption handling E2E tests#5606

Open
pd-redis wants to merge 4 commits intomainfrom
e2e/RI-8003/encryption
Open

RI-8003 Add encryption handling E2E tests#5606
pd-redis wants to merge 4 commits intomainfrom
e2e/RI-8003/encryption

Conversation

@pd-redis
Copy link
Contributor

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

What

Add 2 Playwright E2E tests for certificate and encryption handling (TEST_PLAN.md section 1.7). Tests verify that encryption is enabled by default in the EULA dialog and that disabling encryption stores the setting correctly via the API.

Tests run serially since they reset EULA agreements and re-accept after completion to restore clean state.

Testing

  • Run npx playwright test tests/main/databases/encryption/encryption.spec.ts with local Redis instance

Closes #RI-8003

Made with Cursor


Note

Medium Risk
Adds E2E tests that reset global EULA/agreements state via API, which can introduce flakiness or interference if other Playwright suites run against the same shared instance in parallel.

Overview
Implements Playwright E2E coverage for certificate/encryption handling by exercising the EULA consent popup’s encryption toggle.

The new spec resets agreements to force the EULA dialog, asserts encryption is enabled by default, verifies the plain-text storage warning when disabled, and confirms the resulting agreements.encryption value via the settings API. The test plan marks the two section 1.7 cases as completed.

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

Add 2 Playwright E2E tests for certificate and encryption handling
covering encryption enabled by default and disabling encryption via
the EULA consent dialog, with API verification of settings.

References: #RI-8003
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

Added verification for the encryption toggle in the EULA consent dialog, ensuring the plain-text storage warning is displayed when encryption is disabled. Updated the test to check that the dialog is no longer visible after submission.

References: #RI-8003
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.

Refactored the EULA acceptance method in the encryption handling tests for clarity and consistency. Removed redundant steps to re-enable encryption, streamlining the test flow.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant