Add e2e exceptions for black friday#2587
Conversation
WalkthroughThese changes extend Cypress E2E tests to accept additional banner and CTA text variations, specifically adding "Black Friday Deals" as a valid option. One test refactors validation logic from multiple OR conditions to array-based substring matching. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tests/cypress/e2e/Forms/formPageDataValidation.cy.js (1)
21-27: Excellent refactor for maintainability.Extracting the promotional text options into a dedicated array significantly improves readability and makes it easier to add or remove options in the future. The addition of 'Black Friday Deals' fits naturally into this cleaner structure.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
tests/cypress/e2e/Entries/EntriesPageDataValidations.cy.js(1 hunks)tests/cypress/e2e/Forms/formPageDataValidation.cy.js(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: Cypress
- GitHub Check: PHP 7.4 tests in WP trunk
- GitHub Check: PHP 8 tests in WP trunk
- GitHub Check: PHP 7.4 tests in WP trunk
- GitHub Check: PHP 8 tests in WP trunk
🔇 Additional comments (2)
tests/cypress/e2e/Entries/EntriesPageDataValidations.cy.js (1)
55-56: LGTM! Consistent addition of promotional text option.The addition of 'Black Friday Deals' aligns with the PR objective and maintains consistency with the similar change in formPageDataValidation.cy.js.
tests/cypress/e2e/Forms/formPageDataValidation.cy.js (1)
29-29: Cleaner validation logic.The refactor from multiple OR conditions to
Array.some()with substring matching is more maintainable and easier to extend. This approach correctly validates that at least one expected promotional message appears in the banner text.
…_friday Add e2e exceptions for black friday
No description provided.