-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update Budget Setup Card. #2552
Update Budget Setup Card. #2552
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/2459-campaign-creation-flow #2552 +/- ##
=====================================================================
+ Coverage 62.1% 62.6% +0.5%
=====================================================================
Files 327 329 +2
Lines 5109 5166 +57
Branches 1244 1254 +10
=====================================================================
+ Hits 3171 3232 +61
+ Misses 1756 1752 -4
Partials 182 182
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
This is looking really good, but issues I've noted a few issues where this could be improved.
@@ -266,16 +284,11 @@ test.describe( 'Complete your campaign', () => { | |||
textContent | |||
); | |||
|
|||
const responsePromise = |
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.
Why do we no longer need to wait for this response after the country setting is changed? It looks like when the country values change, the text that reads "Tip: Most merchants targeting similar countries set a daily budget of %d USD" does change, so we should probably ensure that is still being tested.
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.
@joemcgill This is no longer require because we are fulfilling the budget recommendation here, so we no longer have to wait to capture the budget recommendation response.
Those assertions will still be tested with the new fulfilment.
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.
@ankitrox I'm still unsure why we need to remove this. Could you clarify?
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.
@joemcgill Sorry for missing this one.
Initially when we were removing country from (or updating anything in Select country/s
textbox), a request to budget recommendation endpoint was triggered which we were awaiting to get fulfilled in setupBudgetPage.registerBudgetRecommendationResponse()
Now, as per our new implementation, that request will no longer trigger because we are using the countries that have been selected in step 2 which acts as a superset for step 4 data.
Please let me know if this helps or in case of any other query.
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.
@ankitrox Can you check @joemcgill 's comment please? Not sure about this one.
js/src/components/paid-ads/budget-section/budget-recommendation/index.js
Outdated
Show resolved
Hide resolved
Thank you @joemcgill for your feedback. I've addressed your comments and responded to one of your comments related to removing the response promise here. Please let me know if there's anything else you want me to look into. Over to you for another round of review. Thanks again! |
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.
@ankitrox I'm still seeing some unexpected behavior with these changes. If you go back to a previous step after after the budget recommendations have been displayed and then return to the last step, the budget recommendations are no longer showing. I've added a video to show what I'm seeing. Can you give this another look?
budget-card.mov
Could you also provide more context for this question about the e2e test changes?
@joemcgill The issue was happening because There was also an issue of amount getting changed to |
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.
Thanks @ankitrox. This looks like it's working better now. I still have a question about one of the E2E changes that you made, which would be good to clarify, but I'm going to approve and send to @ankitguptaindia for QA.
@@ -266,16 +284,11 @@ test.describe( 'Complete your campaign', () => { | |||
textContent | |||
); | |||
|
|||
const responsePromise = |
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.
@ankitrox I'm still unsure why we need to remove this. Could you clarify?
Hi @joemcgill Apologies for missing the comment previously. I have responded to the query here |
QA/Test Report- ✅Testing Environment -
Test Results - Changes are working as expected. tested all related test scenarios and all are working well. Functional Demo / Screencast - Recording.812.mp4 |
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.
Left some suggestions, questions, and issues that need to be resolved.
In addition, if I understand correctly, post-onboarding can still select audience countries when creating a campaign via the /wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard&subpath=%2Fcampaigns%2Fcreate
path.
However, there are now two issues with this page:
- The recommended budget block is not shown
- There is no API triggered to get the recommended budget after changing the audience countries.
js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js
Outdated
Show resolved
Hide resolved
js/src/components/paid-ads/budget-section/budget-recommendation/index.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js
Outdated
Show resolved
Hide resolved
js/src/setup-mc/setup-stepper/setup-paid-ads/paid-ads-setup-sections.js
Outdated
Show resolved
Hide resolved
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.
…date/2502-budget-setup-card-merged
…date/2502-budget-setup-card-merged
@ankitguptaindia The issue you mentioned here should be fixed now. One thing to note that is if you input a lower number than the recommended budget, you move forward and then come back, you'll still see the lower number. It's fine since in #2503 , the user will not be able to go to the next step if the amount he enters is lower than the recommended budget. |
…date/2502-budget-setup-card
Staus of issues reported here in #2552 (comment)
Thanks, @asvinb reported use cases have been addressed and working as expected now. |
@ankitguptaindia Can you please check if you can still reproduce the issues mentioned here after the latest updates please? |
@eason9487 Can you review proposed changes please? We are now calling the |
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.
The e2e testing couldn't pass.
Changes proposed in this Pull Request:
Closes #2502 .
Replace this with a good description of your changes & reasoning.
Screenshots:
Detailed test instructions:
Daily average cost
input will have the pre-populated value with highest budget in the recommended budgets. For example:Additional details:
Changelog entry