Skip to content

RI-8004 Add decompression setting E2E test#5600

Open
pd-redis wants to merge 8 commits intomainfrom
e2e/RI-8004/decompression
Open

RI-8004 Add decompression setting E2E test#5600
pd-redis wants to merge 8 commits intomainfrom
e2e/RI-8004/decompression

Conversation

@pd-redis
Copy link
Contributor

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

What

Add Playwright E2E test for database decompression settings (TEST_PLAN.md section 1.8). Verifies that enabling automatic data decompression persists after saving and reopening the edit dialog.

Testing

  • Run npx playwright test tests/main/databases/decompression/decompression.spec.ts with local Redis instances

Closes #RI-8004

Made with Cursor


Note

Low Risk
Low risk: changes are confined to Playwright E2E test code and the test plan, with no production logic modifications.

Overview
Adds a new Playwright E2E spec covering database decompression: verifies selecting a compressor (e.g., GZIP) persists after saving/reopening the Edit Database dialog, and validates Browser displays decompressed string values for a seeded GZIP-compressed key.

Extends E2E test utilities to support these scenarios by adding ApiHelper.updateDatabase() (PATCH /api/databases/:id), allowing binary payloads in createStringKey(), and enhancing AddDatabaseDialog to select a compressor from the Decompression dropdown. Updates TEST_PLAN.md to mark the decompression test as implemented.

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

Add Playwright E2E test verifying that enabling automatic data
decompression persists after saving and reopening the edit dialog.

References: #RI-8004
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 search functionality to the decompression E2E test to ensure the database can be located before editing. This improves the reliability of the test by confirming the database's presence prior to interaction.

References: #RI-8004
KrumTy
KrumTy previously approved these changes Mar 9, 2026
| Status | Group | Test Case |
|--------|-------|-----------|
| 🔲 | main | Confirm setting a decompression type works |
| | main | Confirm setting a decompression type works |
Copy link
Member

Choose a reason for hiding this comment

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

Does it make sense to actually verify decompression works?

  1. Seed some compressed keys in the database
  2. Connect to the database(as this test does right now)
  3. But also verify the keys are properly rendered later, in the Browser

@KrumTy KrumTy dismissed their stale review March 9, 2026 13:19

to be re-reviewed once tests pass

Add compressor dropdown locator and select GZIP format so the
decompression setting actually persists after save.

References: #RI-8004
Made-with: Cursor
Add E2E test that seeds GZIP-compressed data and verifies
it renders correctly in the Browser with decompression enabled.
Also add updateDatabase and Buffer support to ApiHelper.

Made-with: Cursor
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.

@pd-redis pd-redis requested review from KrumTy and valkirilov March 11, 2026 12:43
…and workspace facts to streamline documentation and improve clarity.
…ons parameter

Removed the optional compressor parameter from the createDatabase method in ApiHelper to streamline the function and improve clarity.
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.

3 participants