-
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
Onboarding: Create New Google Combo Accounts Card. #2601
Onboarding: Create New Google Combo Accounts Card. #2601
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/2590-consolidate-google-account-cards #2601 +/- ##
=============================================================================
Coverage 62.7% 62.7%
=============================================================================
Files 319 319
Lines 5059 5059
Branches 1229 1229
=============================================================================
Hits 3171 3171
Misses 1715 1715
Partials 173 173
Flags with carried forward coverage won't be shown. Click here to find out more. |
Remove ads and merchant center tests.
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 starting to look really good. I've left some feedback inline about the Terms & Conditions links that were previously used.
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.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.
Left a couple more notes, but this is looking right to me besides updating the E2E tests. I think @ankitguptaindia could start some QA testing while the E2E updates are being made.
* @param {boolean} props.disabled | ||
* @fires gla_google_account_connect_button_click with `{ action: 'authorization', context: 'reconnect' }` | ||
* @fires gla_google_account_connect_button_click with `{ action: 'authorization', context: 'setup-mc' }` | ||
* @fires gla_documentation_link_click with `{ context: 'setup-mc-accounts', link_id: 'required-google-permissions', href: 'https://woocommerce.com/document/google-for-woocommerce/get-started/setup-and-configuration/#required-google-permissions' }` |
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 accounts for the readMoreLink
component. Will need to add two additional ones for the two new AppDocumentationLink
components.
js/src/components/google-combo-account-card/connect-google-combo-account-card.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.
@ankitrox I left a few comments. Can you kindly check them out and let me know what you think please?
Thanks!
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
QA Test ReportI have completed the QA for this PR and confirmed that the requirements align with the details provided in the connected issue (FR ticket).
Quick Demo: Recording.822.mp4 |
@ankitrox Can we align 'Ads' in the same line with 'Google'? -- QA Note- Will test this PR again quickly after completion of CR. |
@ankitguptaindia This has been fixed with the new |
js/src/components/google-combo-account-card/connect-google-combo-account-card.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.
@ankitrox Changes LGTM. Just a one thing to fix here:
https://github.com/woocommerce/google-listings-and-ads/pull/2601/files#r1759081955
and you can send to QA.
Thanks!
QA/Test Report- ✅Testing Environment -
Test Results - Verified all cases after completion of CR. PR changes working as described in AC. Detailed Test cases status: #2601 (comment) Functional Demo / Screencast - Google Card workflow when has all permission: Google.Connection.mp4Google Card workflow when has limited permission: G2.mp4This PR is ready for the next step, we're discussing some minor concerns related to the button color status over Slack, Will update/create this/new PR if the issue is related to current changes. |
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 for the work. Left some comments that may need to be addressed.
Furthermore:
- The e2e testing couldn't pass - https://github.com/woocommerce/google-listings-and-ads/actions/runs/10897655273/job/30239450725
- Now these two assertions are false negatives. It would be nicer to be removed together.
const mcAccountCard = setUpAccountsPage.getMCAccountCard(); await expect( mcAccountCard.getByRole( 'button' ) ).not.toBeVisible(); const adsAccountCard = setUpAccountsPage.getGoogleAdsAccountCard(); await expect( adsAccountCard.getByRole( 'button' ) ).not.toBeVisible();
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.js
Outdated
Show resolved
Hide resolved
Thank you @eason9487 for reviewing the PR. I've removed the redundant checks in e2e and also fixed the failing tests. |
Changes LGTM @ankitrox . |
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 for the updates! LGTM.
There are two unnecessary styles in connect-google-combo-account-card.scss
to be removed, and I believe the removal won't need another round of code reviews from Woo. I will be approving this RP in advance.
js/src/components/google-combo-account-card/connect-google-combo-account-card.scss
Outdated
Show resolved
Hide resolved
js/src/components/google-combo-account-card/connect-google-combo-account-card.scss
Outdated
Show resolved
Hide resolved
52a53f4
into
feature/2590-consolidate-google-account-cards
Changes proposed in this Pull Request:
Closes #2566 .
Replace this with a good description of your changes & reasoning.
Screenshots:
Detailed test instructions:
Disconnect all Google accounts if already connected in the plugin.
Start the onboarding process again.
There should be Google card visible in the first step.
The connect button would be disabled if Jetpack is not connected or Terms and conditions are not accepted.
Clicking the "Connect" button initiates the current flow to connect a Google account and grant permissions
After connecting the Google account successfully, the connected version of Google card should be visible.
Additional details:
Changelog entry