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

Adjust unverified publisher note display logic #10242

Merged
merged 1 commit into from
Sep 24, 2021

Conversation

zenparsing
Copy link
Collaborator

@zenparsing zenparsing commented Sep 24, 2021

Resolves brave/brave-browser#18341

Previously, an "unverified tipping note" would appear in the following case:

  • The user does not have an external wallet
  • The publisher is registered but does not have a verified wallet provider address.

Per clarification in brave/brave-browser#18137, the user should not see the message in this case on either the rewards panel or the tipping banner.

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: "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: "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 Rewards panel publisher status indicator should display message 1 on hover.

Case 2: Registered but not verified, user not verified

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

  • Given that the user has enabled rewards
  • And the user does not have a connected external wallet
  • 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 Rewards panel publisher status indicator should not display a message on hover.

Case 3: Registered but not verified, user verified

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

  • Given that the user has enabled rewards
  • And the user has a connected external wallet
  • 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 Rewards panel publisher status indicator should display message 2 on hover.

Case 4: 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 Rewards panel publisher status indicator should not display a message on hover

Case 5: 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 Rewards panel publisher status indicator should display message 2 on hover.

Case 6: 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 Rewards panel publisher status indicator should not display a message on hover.

@zenparsing zenparsing requested a review from a team as a code owner September 24, 2021 15:18
@zenparsing zenparsing requested review from jumde and emerick September 24, 2021 15:18
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

@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 #10242 (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, user not verified - PASSED

Confirmed no message is displayed about publisher status

Example Example
2a 2b
Scenario 3 - Registered but not verified, user verified - PASSED

Confirmed message 2 is displayed about publisher status

Example Example
3a 3b
Scenario 4 - Verified and user is not connected - PASSED

Confirmed no message is displayed about publisher status

Example Example
4a 4b
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 5 - Verified with non-matching wallet provider - PASSED

Confirmed message 2 is displayed about publisher status

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

Confirmed no message is displayed about publisher status

Example Example
6a 6b

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.

Do not show tipping notice for unverified rewards user case
3 participants