-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
feat: Add e2e tests of speeding up and cancelling transactions #30212
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. |
Builds ready [98895bd]
Page Load Metrics (1827 ± 77 ms)
Bundle size diffs
|
98895bd
to
ac4a3ca
Compare
Builds ready [ac4a3ca]
Page Load Metrics (1705 ± 80 ms)
Bundle size diffs
|
|
||
// Click speed up button and confirm | ||
await driver.clickElement('[data-testid="speedup-button"]'); | ||
await driver.clickElement({ text: 'Submit', tag: 'button' }); |
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.
do you think we could use page objects in both specs? 🙏
Builds ready [92c5f75]
Page Load Metrics (1690 ± 53 ms)
Bundle size diffs
|
bec9e7f
92c5f75
to
bec9e7f
Compare
async goToActivityTab() { | ||
await this.driver.clickElement( | ||
'[data-testid="account-overview__activity-tab"]', | ||
); |
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 already have a class for the Home page which goes to activity list:
|
||
async cancelTransaction() { | ||
await this.driver.clickElement({ text: 'Cancel', tag: 'button' }); | ||
await this.driver.clickElement({ text: 'Submit', tag: 'button' }); |
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 already have a class for the ActivityList page where we can use existing methods, and extend whatever is needed there, instead of creating a new page 🙏
Builds ready [bec9e7f]
Page Load Metrics (1728 ± 45 ms)
Bundle size diffs
|
bec9e7f
to
99f235e
Compare
aea6918
to
c27822d
Compare
c27822d
to
5b27525
Compare
Builds ready [5b27525]
Page Load Metrics (1773 ± 47 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.
awesome 🔥 thank you for the changes 🙏
Description
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4141
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist