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

Added tests for rewards service #375

Merged
merged 1 commit into from
Sep 4, 2018
Merged

Added tests for rewards service #375

merged 1 commit into from
Sep 4, 2018

Conversation

jasonrsadler
Copy link
Contributor

@jasonrsadler jasonrsadler commented Aug 30, 2018

Fixes brave/brave-browser#938

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Request a security/privacy review as needed.
  • Add appropriate QA labels (QA/Needed or QA/No-QA-Needed) to include the closed issue in milestone

Test Plan:

Tests cover the following areas:

  1. check if rewards welcome page is rendering
  2. make sure that you can toggle it on
  3. make sure that you can toggle it off
  4. make sure that you can toggle on/off auto contribute
  5. make sure that backup / restore modal is opened

you can run tests with: npm run test -- brave_browser_tests --filter=BraveRewardsBrowserTest.*

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

@jasonrsadler jasonrsadler changed the title Added tests for rewards service WIP Added tests for rewards service Aug 30, 2018
@jasonrsadler
Copy link
Contributor Author

blocked on brave/brave-ui#94

@jasonrsadler jasonrsadler changed the title WIP Added tests for rewards service Added tests for rewards service Sep 3, 2018
@NejcZdovc
Copy link
Contributor

@jasonrsadler please remove vendor files

package.json Outdated Show resolved Hide resolved
@jasonrsadler
Copy link
Contributor Author

vendor files removed (Thanks for the assist)

@NejcZdovc NejcZdovc merged commit c96f678 into brave:rewards Sep 4, 2018
// toggle auto contribute off
bool result;
ASSERT_TRUE(ExecuteScriptAndExtractBool(contents(),
"var interval = setInterval(function() {"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this needs a max retry - see web_view_browsertest.cc WaitForWebViewInDom for an example

Copy link
Contributor

Choose a reason for hiding this comment

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

@jasonrsadler can you please do a follow up for this one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

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

Successfully merging this pull request may close these issues.

4 participants