Fixed flaky test for welcome email customization#27406
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughA test in the member welcome email settings was modified to extend the color-picker interaction sequence. After selecting an accent color swatch, the test now reopens the button color-picker trigger and clicks the role-labeled "Auto" color option within the customization modal before continuing with the existing flow. Two locator/property additions were made to support this additional interaction. 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ee4ec2d to
621d4a4
Compare
|



ref https://github.com/TryGhost/Ghost/actions/runs/24453350917/job/71449353776
Changes
Escape closes welcome email color picker without bypassing unsaved changes confirmationin e2e/tests/admin/settings/member-welcome-emails.test.ts.AccentAutoEscapecloses only the color pickerEscapeshows unsaved-changes confirmation and keeps the customize modal openWhy
The test was intermittent because dirty state was not always guaranteed before
Escape.