-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement/#9447 - Add a survey trigger for Reader Revenue Manager CTA #9608
Enhancement/#9447 - Add a survey trigger for Reader Revenue Manager CTA #9608
Conversation
Build files for cfc18f6 have been deleted. |
Size Change: +115 B (+0.01%) Total Size: 1.85 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hussain-t, this is looking good. Just one comment from me on the approach to testing, please take a look.
...dules/reader-revenue-manager/components/dashboard/ReaderRevenueManagerSetupCTABanner.test.js
Show resolved
Hide resolved
@@ -81,6 +88,8 @@ describe( 'ReaderRevenueManagerSetupCTABanner', () => { | |||
} ); | |||
|
|||
it( 'should render the Reader Revenue Manager setup CTA banner when not dismissed', async () => { | |||
mockSurveyEndpoints(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to retain the mockSurveyEndpoints
calls to ensure the tests pass, as the survey endpoints are triggered when the banner renders. Removing them would cause the tests to fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice one @hussain-t.
Summary
Addresses issue:
Relevant technical choices
PR Author Checklist
Do not alter or remove anything below. The following sections will be managed by moderators only.
Code Reviewer Checklist
Merge Reviewer Checklist