-
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
test: [POM] Migrate token tests #29375
Conversation
…tamask-extension into qq-mulitple-tokens-migration
…tamask-extension into qq-mulitple-tokens-migration
…-send-ecr20-to-contract
…-send-ecr20-to-contract
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 [7f54477]
Page Load Metrics (1801 ± 78 ms)
Bundle size diffs
|
Builds ready [c09fd7d]
Page Load Metrics (1613 ± 47 ms)
Bundle size diffs
|
Builds ready [7888d66]
Page Load Metrics (1571 ± 47 ms)
|
…tension into qq-more-token-tests
Builds ready [15854d4]
Page Load Metrics (1717 ± 68 ms)
|
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
Builds ready [9f39c02]
Page Load Metrics (1670 ± 71 ms)
|
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
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.
Overall the new changes look good to me! I've just added a couple of small nits. Feel free to take them or leave them
const isPresent = await this.driver.isElementPresentAndVisible({ | ||
css: this.tokenIncreaseDecreaseValue, | ||
text: expectedChangeValue, | ||
}); | ||
if (!isPresent) { | ||
throw new Error( | ||
`Token general change value ${expectedChangeValue} not found`, | ||
); | ||
} |
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.
nit: this simplifies a bit the code and readability. Note that waitForSelector already waits for an element with visible state by default
const isPresent = await this.driver.isElementPresentAndVisible({ | |
css: this.tokenIncreaseDecreaseValue, | |
text: expectedChangeValue, | |
}); | |
if (!isPresent) { | |
throw new Error( | |
`Token general change value ${expectedChangeValue} not found`, | |
); | |
} | |
await this.driver.waitForSelector({ | |
css: this.tokenIncreaseDecreaseValue, | |
text: expectedChangeValue, | |
}); |
Description
asset-list
Page Object - Adds methods for interacting with token list (i.e sorting, getting list, assertion on increase/decrease price and percentage)send-token
page for warning messagetoken-overview
import-tokens
,send-erc20-to-contract
,token-list
andtoken-sort
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist