Skip to content

RI-8038 [E2E] 7.2 Settings -> Privacy Settings#5592

Open
pd-redis wants to merge 2 commits intomainfrom
e2e/RI-8038/privacy-settings
Open

RI-8038 [E2E] 7.2 Settings -> Privacy Settings#5592
pd-redis wants to merge 2 commits intomainfrom
e2e/RI-8038/privacy-settings

Conversation

@pd-redis
Copy link
Contributor

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

What

Add Playwright E2E tests for the Privacy Settings section (7.2) of the Settings page.

Tests verify that the privacy section expands correctly, the usage data switch is displayed, and the privacy policy link is visible with the correct target attribute.

Testing

Run: npx playwright test tests/main/settings/privacy-settings


Closes #RI-8038

Made with Cursor


Note

Low Risk
Test-only changes plus more robust UI selectors for accordion expansion state; minimal product risk, with minor risk of selector brittleness if settings DOM attributes change.

Overview
Adds Playwright E2E coverage for Settings → Privacy (7.2), validating the section expands and that the usage data toggle and privacy policy link (opens in a new tab) are visible.

Updates the SettingsPage page object to make accordion interactions more reliable by targeting section headings and determining expanded/collapsed state via each accordion’s data-test-subj/data-state attributes instead of aria-expanded on buttons, and marks the 7.2 test cases as implemented in TEST_PLAN.md.

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

@jit-ci
Copy link

jit-ci bot commented Mar 4, 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 2 potential issues.

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

References: #RI-8038
Made-with: Cursor
@pd-redis pd-redis force-pushed the e2e/RI-8038/privacy-settings branch from 8a34c78 to ffc6852 Compare March 5, 2026 08:55
KrumTy
KrumTy previously approved these changes Mar 9, 2026
@KrumTy KrumTy dismissed their stale review March 9, 2026 13:21

to be re-reviewed once tests pass

@@ -666,9 +666,9 @@ The test plan is organized by feature area. Tests are grouped for parallel execu
### 7.2 Privacy Settings
Copy link
Member

Choose a reason for hiding this comment

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

Being in the context of an e2e test, does it make sense to actually verify whether we send (or don't) telemetry data, once we toggle the Usage data switch?

Like, a simple network interceptor, just to verify whether we emit send-page and send-event 🤔

Image

The Section accordion from redis-ui renders headings, not buttons,
for section labels. The collapse button has aria-label="Expand Section",
not the section name. Updated isExpanded checks to use data-state
on the accordion root element.

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