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

[e2e] Security provider improvements #18616

Closed
wants to merge 3 commits into from

Conversation

seaona
Copy link
Contributor

@seaona seaona commented Apr 17, 2023

Explanation

Context: there has been an issue, where we sent additional requests to the Security Provider #18560 . This issue has been partially fixed by this PR #18598

What: this PR adds new assertions to the e2e security provider tests, for making sure that only 1 request is sent to the security provider.
Since the additional requests were sent both whenever a signature was triggered as well as when the tx was Accepted/Rejected, in this PR we extend the actions to finish the flow, by accepting the signatures and at the end of the test we make sure only 1 request has been sent.

Screenshots/Screencaps

Whenever the remaining issue is fixed, this PR should pull last develop and tests should pass.
At the moment, tests fail, meaning tests are catching the extra requests.

Screenshot from 2023-04-17 11-19-16

Before

/

After

/

Manual Testing Steps

  • Check that all tests pass in circle ci
  • Manually run the security provider test in your local test environment yarn test:e2e:single test/e2e/tests/security-provider.spec.js --browser=chrome

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@seaona seaona requested a review from a team as a code owner April 17, 2023 08:54
@seaona seaona requested a review from jpuri April 17, 2023 08:54
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@seaona seaona self-assigned this Apr 17, 2023
@seaona seaona added the team-confirmations-secure-ux-PR PRs from the confirmations team label Apr 17, 2023
@github-actions
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 14 days. Thank you for your contributions.

@github-actions github-actions bot added the stale issues and PRs marked as stale label Jul 20, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2023

This PR was closed because there has been no follow up activity in the last 14 days. Thank you for your contributions.

@github-actions github-actions bot closed this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale issues and PRs marked as stale team-confirmations-secure-ux-PR PRs from the confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[e2e] Add test which validates only 1 request is sent to the Security Provider API
2 participants