-
Notifications
You must be signed in to change notification settings - Fork 5.2k
test: [POM] Migrate Send tx Revoke Permissions spec #29273
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
Conversation
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. |
describe('Request Queuing', function () { | ||
// TODO: add a new spec which checks that after revoking and connecting again | ||
// a pending tx is still closed when using revokePermissions. | ||
// To be done once this bug is fixed: #29272 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a new bug has been discovered while migrating this spec.
Once the bug is fixed, we should add a new spec to verify that flow too.
Basically the first time we perform the flow it works as expected, but if we re-conenct to the dapp, trigger a new tx, and revoke permissions, that new tx is not cleared.
await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog); | ||
|
||
const transactionConfirmation = new TransactionConfirmation(driver); | ||
await transactionConfirmation.check_dappInitiatedHeadingTitle(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to wait until the confirmation screen is loaded, otherwise we run into a race condition where the tx is not cleared, as it was not yet in the state
Builds ready [e5e2467]
Page Load Metrics (1771 ± 103 ms)
Bundle size diffs
|
Builds ready [7ed25dd]
Page Load Metrics (1917 ± 78 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Builds ready [90dfcf1]
Page Load Metrics (1601 ± 103 ms)
Bundle size diffs
|
Description
test/e2e/tests/request-queuing/sendTx-revokePermissions.spec.js
spec to POM and tsRelated issues
Fixes: #29276
Manual testing steps
yarn test:e2e:single test/e2e/tests/request-queuing/sendTx-revokePermissions.spec.ts --browser=chrome --leave-running=true
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist