Closed ankitrox closed 4 weeks ago
Attention: Patch coverage is 80.64516%
with 12 lines
in your changes missing coverage. Please review.
Please upload report for BASE (
feature/2509-consolidate-google-account-cards@7d31e5c
). Learn more about missing BASE report. Report is 94 commits behind head on feature/2509-consolidate-google-account-cards.
We had a typo in the feature branch for #2509. I've updated the branch and am changing the base of this PR to merge into the correct branch now.
@ankitrox I faced some issues when playing with the below scenario. Please check and let me know if these are already related to another PR.
Point 1: Continuous Spinner on Account Creation
While creating accounts, the spinner keeps running indefinitely without any response. Screencast: : Link
EDIT: As discussed on the call, Points 2 and 3 are being addressed/developed in another PR, so please skip both points. Points 4 and 5 followed the instructions discussed on the call for using Postman to delete account details, so these can also be skipped.
Point-6:
Apart from using the custom plugin to connect an existing Google account, I attempted to create Ads/MC accounts using a new real Google account and encountered issues with Ads account creation.
Please see the console logs in the video:
https://github.com/user-attachments/assets/4f1a81c7-93db-4649-b3fd-a72d5472d2b4
Points:7:
Once both accounts are created, a green "Connected" label (not pictured) should be shown and connected accounts should be displayed.
When using custom plugin to creating new accounts with old Google accounts, can not see a green "Connected" label.
@ankitguptaindia Thanks for testing the ticket. I've addressed the points reported by you, please check the below mentioned comments.
Point 1: Continuous Spinner on Account Creation
This has been fixed. There was a problem where a brand new account is connected, this was working for the first time, but as soon as we refreshed the page, the connecting status was shown and stayed on the page.
Point-6: Apart from using the custom plugin to connect an existing Google account, I attempted to create Ads/MC accounts using a new real Google account and encountered issues with Ads account creation.
As discussed over our call, I have discussed this with @joemcgill over slack conversation and we will handle this in #2582
Point-7 When using custom plugin to creating new accounts with old Google accounts, can not see a green "Connected" label.
Added.
Changes LGTM @ankitrox
Hi @ankitrox Thanks for the fixes, Point-1 has been fixed and the account is created without any error but Point-7, the success green mark is still not appearing for me and there is a new network error appearing. Please check the attached screencast for error details.
https://github.com/user-attachments/assets/04024d18-5f21-4764-9716-6362ca54ed01
@ankitrox
Point 1: Continuous Spinner on Account Creation
When using existing Google accounts with Ads/MC accounts and the custom plugin, everything works as expected. However, when using a new real Google account without any Ads/MC accounts, the "creating..." spinner runs continuously for an extended period. After refreshing the page, the new accounts appear as connected.
Here’s a screencast showing my steps: https://somup.com/cZ66ITH3eJ Please have a look.
Update regarding the issue reported above in https://github.com/woocommerce/google-listings-and-ads/pull/2618#issuecomment-2405197648
This issue occurs when the store/site has already been claimed by another MC account, and we are attempting to create new MC/Ads accounts in the first step of onboarding. If both the site and Google accounts are new, the continuous spinner issue ("Creating...") does not occur.
This scenario will be handled separately in issue #2597.
Thanks for the feedback @eason9487
I have addressed the changes and responded to other comments. Can you please look over them and let me know in case of any questions?
Over to you for another review.
Thanks again.
I've left a bit of feedback, but would appreciate if @eason9487 could give the latest iteration another look.
Thanks for your valuable suggestion on E2E @eason9487. I have addressed these changes and left response to your comments. Assigning this to you for another pass.
Thanks for your review and valuable suggestions @eason9487 .
I've made the changes and merging the PR.
Changes proposed in this Pull Request:
Closes #2567 .
Replace this with a good description of your changes & reasoning.
Screenshots:
Detailed test instructions
Create a new site and setup the GLA plugin (Make sure you are testing on the feature branch if this is not merged).
Go to
Marketing > Google for Woocommerce
and start onboarding process.Connect to the fresh Google account. This account should not have any existing merchant center accounts or Google ads account.
As soon as user sign-in flow is completed and user lands back to onboarding screen, there should be the card status changed to the one which should read
You don’t have Merchant Center nor Google Ads accounts, so we’re creating them for you.
as per the Figma designs.Once Merchant Center account and Ads account is created, card state will be changed this. Which will display Merchant Center ID and Google Ads ID (for 1-2 seconds ads ID may be seen as zero because ads request gets resolved later).
Note that there would be some error notices popping up regarding ads account connection and ads connection status, but this can be ignored for this issue and will be handled in #2582
Use custom plugin to test with existing account.
As it is very inconvenient to test with the fresh account everytime; especially in the scenario where Google may not allow more accounts to be created and asks for new mobile number (where we are out of phone numbers). Following method can help us to test with existing Google account.
Once the test is run, you will need to clear following options from
*_options
table.These options can also be cleared using following npm command in local setup.
Additional details:
Changelog entry