[e2e] Security provider improvements #18616
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Before
/
After
/
Manual Testing Steps
yarn test:e2e:single test/e2e/tests/security-provider.spec.js --browser=chrome
Pre-merge author checklist
Pre-merge reviewer checklist
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.