Skip to content
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

Show correct notice on tipping banner for unregistered creators #10137

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

zenparsing
Copy link
Collaborator

@zenparsing zenparsing commented Sep 17, 2021

Resolves brave/brave-browser#18137

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

Message 1: "NOTE: This creator is not signed up yet. Any tip you make will remain pending in your wallet and retry automatically for 90 days. Learn more."

Message 2: "NOTE: This creator is currently not configured to receive tips from your wallet. Any tip you make will remain pending in your wallet and retry automatically for 90 days. Learn more."

Case 1: Not registered

Example staging creator: apple.com

  • Given that the user has enabled rewards
  • When the user navigates to a publisher page
  • And the publisher is not a registered creator
  • Then the tipping banner should display message 1.

Case 2: Registered but not verified

Example staging creator: www.reddit.com/user/jsadler-brave

  • Given that the user has enabled rewards
  • When the user navigates to a publisher page
  • And the publisher is a registered creator
  • And the publisher is not verified with any wallet provider
  • Then the tipping banner should display message 2.

Case 3: Verified and user is not connected

Example staging creator: laurenwags.github.io

  • Given that the user has enabled rewards
  • And has not connected to an external wallet provider
  • When the user navigates to a publisher page
  • And the publisher is verified with any wallet provider
  • Then the tipping banner should not display a message.

Case 4: Verified with non-matching wallet provider

  • Given that the user has enabled rewards
  • And has connected to an external wallet provider
  • When the user navigates to a publisher page
  • And the publisher is verified with a different wallet provider
  • Then the tipping banner should display message 2.

Case 5: Verified with matching wallet provider

  • Given that the user has enabled rewards
  • And has connected to an external wallet provider
  • When the user navigates to a publisher page
  • And the publisher is verified with the same wallet provider
  • Then the tipping banner should not display a message.

Copy link
Contributor

@emerick emerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@szilardszaloki szilardszaloki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have yet another reference to siteBannerConnectedText in brave-browser\src\brave\.storybook\locale.ts.

@zenparsing zenparsing force-pushed the ksmith-tip-banner-notice branch from a658387 to 9417edd Compare September 21, 2021 15:15
@emerick emerick self-requested a review September 21, 2021 15:52
@LaurenWags
Copy link
Member

LaurenWags commented Sep 29, 2021

Verified using

Brave	1.32.31 Chromium: 94.0.4606.61 (Official Build) nightly (x86_64)
Revision	418b78f5838ed0b1c69bb4e51ea0252171854915-refs/branch-heads/4606@{#1204}
OS	macOS Version 10.15.7 (Build 19H1417)

Verified test plan from #10137 (comment)

Scenario 1 - Not registered - PASSED

Confirmed message 1 is displayed on the tipping banner

Example Example
1a 1b

Scenario 2 - Registered but not verified - Skipped, will be fixed with #10242

Scenario 3 - Verified and user is not connected - PASSED

Confirmed no message is displayed on the tipping banner

Example Example
3a 3b
Brave | 1.32.33 Chromium: 94.0.4606.61 (Official Build) nightly (x86_64)
-- | --
Revision | 418b78f5838ed0b1c69bb4e51ea0252171854915-refs/branch-heads/4606@{#1204}
OS | macOS Version 10.15.7 (Build 19H1417)
Scenario 4 - Verified with non-matching wallet provider - PASSED

Confirmed message 2 is displayed on the tipping banner

Example Example
4a 4b
Scenario 5 - Verified with matching wallet provider - PASSED

Confirmed no message is displayed on the tipping banner

Example Example
5a 5b

Additional checks performed:

Anon wallet (funded via UGP grant) - PASSED

Confirmed tip to unverified creator went to pending list and appropriate message (1) was displayed:

Example Example Example Example
Screen Shot 2021-09-30 at 9 27 56 AM Screen Shot 2021-09-30 at 9 28 04 AM Screen Shot 2021-09-30 at 9 28 19 AM Screen Shot 2021-09-30 at 9 28 25 AM

Confirmed able to tip connected, Uphold, Gemini, and bitFlyer KYC'd creators and no messaging was displayed.
Confirmed balance decreased as expected for tip to each of these creators.

Connected Example Connected Example Uphold Example Uphold Example Gemini Example Gemini Example bitFlyer Example bitFlyer Example Tips List Wallet Panel
Screen Shot 2021-09-30 at 9 31 02 AM Screen Shot 2021-09-30 at 9 31 09 AM Screen Shot 2021-09-30 at 9 31 27 AM Screen Shot 2021-09-30 at 9 31 51 AM Screen Shot 2021-09-30 at 9 32 14 AM Screen Shot 2021-09-30 at 9 32 23 AM Screen Shot 2021-09-30 at 9 32 52 AM Screen Shot 2021-09-30 at 9 33 00 AM Screen Shot 2021-09-30 at 9 33 17 AM Screen Shot 2021-09-30 at 9 33 25 AM
Uphold wallet (funded via Uphold BAT on staging env) - PASSED

Confirmed tip to unverified creator went to pending list and appropriate message (1) was displayed:

Example Example Example Example
Screen Shot 2021-09-30 at 9 40 49 AM Screen Shot 2021-09-30 at 9 40 58 AM Screen Shot 2021-09-30 at 9 41 09 AM Screen Shot 2021-09-30 at 9 41 15 AM

Confirmed tip to connected, Gemini, and bitFlyer creators went to pending list and appropriate message (2) was displayed:

Connected Example Connected Example Gemini Example Gemini Example bitFlyer Example bitFlyer Example Wallet Panel Pending Tips List
Screen Shot 2021-09-30 at 9 42 24 AM Screen Shot 2021-09-30 at 9 42 32 AM Screen Shot 2021-09-30 at 9 42 49 AM Screen Shot 2021-09-30 at 9 42 57 AM Screen Shot 2021-09-30 at 9 43 13 AM Screen Shot 2021-09-30 at 9 43 21 AM Screen Shot 2021-09-30 at 9 43 38 AM Screen Shot 2021-09-30 at 9 43 45 AM

Confirmed able to tip Uphold KYC'd creator and no messaging was displayed.
Confirmed balance decreased as expected for tip.

Example Example Example Example
Screen Shot 2021-09-30 at 9 46 27 AM Screen Shot 2021-09-30 at 9 48 20 AM Screen Shot 2021-09-30 at 9 48 38 AM Screen Shot 2021-09-30 at 9 50 09 AM
bitFlyer wallet (funded via bitFlyer BAT on staging env) - PASSED

Confirmed tip to unverified creator went to pending list and appropriate message (1) was displayed:

Example Example Example Example
Screen Shot 2021-09-30 at 10 22 36 Screen Shot 2021-09-30 at 10 22 44 Screen Shot 2021-09-30 at 10 22 57 Screen Shot 2021-09-30 at 10 23 05

Confirmed tip to connected, Gemini, and Uphold creators went to pending list and appropriate message (2) was displayed:

Connected Example Connected Example Gemini Example Gemini Example Uphold Example Uphold Example Wallet Panel Pending Tips List
Screen Shot 2021-09-30 at 10 25 03 Screen Shot 2021-09-30 at 10 25 10 Screen Shot 2021-09-30 at 10 25 43 Screen Shot 2021-09-30 at 10 25 53 Screen Shot 2021-09-30 at 10 26 13 Screen Shot 2021-09-30 at 10 26 21 Screen Shot 2021-09-30 at 10 26 41 Screen Shot 2021-09-30 at 10 26 49

Confirmed able to tip bitFlyer KYC'd creator and no messaging was displayed.
Confirmed balance decreased as expected for tip.

Example Example Example Example
Screen Shot 2021-09-30 at 10 30 11 Screen Shot 2021-09-30 at 10 30 21 Screen Shot 2021-09-30 at 10 31 02 Screen Shot 2021-09-30 at 10 31 48
Gemini wallet (funded via Gemini BAT on staging env) - PASSED

Confirmed tip to unverified creator went to pending list and appropriate message (1) was displayed:

Example Example Example Example
Screen Shot 2021-09-30 at 10 40 29 AM Screen Shot 2021-09-30 at 10 40 39 AM Screen Shot 2021-09-30 at 10 40 51 AM Screen Shot 2021-09-30 at 10 40 59 AM

Confirmed tip to connected, bitFlyer, and Uphold creators went to pending list and appropriate message (2) was displayed:

Connected Example Connected Example bitFlyer Example bitFlyer Example Uphold Example Uphold Example Wallet Panel Pending Tips List
Screen Shot 2021-09-30 at 10 44 42 AM Screen Shot 2021-09-30 at 10 44 52 AM Screen Shot 2021-09-30 at 10 45 18 AM Screen Shot 2021-09-30 at 10 45 27 AM Screen Shot 2021-09-30 at 10 45 44 AM Screen Shot 2021-09-30 at 10 45 53 AM Screen Shot 2021-09-30 at 10 46 40 AM Screen Shot 2021-09-30 at 10 46 48 AM

Confirmed able to tip Gemini KYC'd creator and no messaging was displayed.
Confirmed balance decreased as expected for tip.

Example Example Example Example
Screen Shot 2021-09-30 at 10 51 26 AM Screen Shot 2021-09-30 at 10 51 50 AM Screen Shot 2021-09-30 at 10 55 41 AM Screen Shot 2021-09-30 at 11 05 46 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix tipping banner warning text for unverified creator versus no available path creators
4 participants