-
Notifications
You must be signed in to change notification settings - Fork 78
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
storybook: test_mintTokensIntroPages added #16362
base: master
Are you sure you want to change the base?
Conversation
b3be00c
to
f27e910
Compare
Jenkins BuildsClick to see older builds (43)
|
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.
Great initiative! Congratz on your first QML testcase :)
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! Congratulations 🥳
LGTM other than what Lukas already pointed out
89d81e8
to
548c707
Compare
548c707
to
1e527b9
Compare
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.
Looks good, let's see if it passes :)
fails with segfault, but it was even before my changes :/ |
I'll check it out locally EDIT: and it works just fine on my machine... |
it works to me perfectly as well |
I'll have a look :) |
Did a full run locally:
|
21bb379
to
9990c84
Compare
aaf8eec
to
5630652
Compare
compare(htmlToPlainText(((findChild(settingsPage, | ||
"introPanelText")).text).replace(/’/g, "'")), | ||
"Your Owner token will give you permissions to access the token management features for your community. This token is very important - only one will ever exist, and if this token gets lost then access to the permissions it enables for your community will be lost forever as well. | ||
Minting your Owner token also automatically mints your community's TokenMaster token. You can airdrop your community's TokenMaster token to anybody you wish to grant both Admin permissions and permission to access your community's token management functions to. | ||
Only the hodler of the Owner token can airdrop TokenMaster tokens. TokenMaster tokens are soulbound (meaning they can't be transferred), and you (the hodler of the Owner token) can remotely destruct a TokenMaster token at any time, to revoke TokenMaster permissions from any individual.") |
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 we need to put the full text here? Maybe we could just check if it begins with the proper phrase? Having full string here doesn't help probably. We stil have not guarantee it's displayed properly at least. Btw. I would add check if the component is visible.
tryCompare(mintTokensSettingsPanel.currentItem, "objectName", | ||
"ownerTokenPage") | ||
|
||
var settingsPage = findChild(mintTokensSettingsPanel.currentItem, |
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.
var settingsPage = findChild(mintTokensSettingsPanel.currentItem, | |
const settingsPage = findChild(mintTokensSettingsPanel.currentItem, |
it segfaults because the component crashes from time to time with qt 5.15.2 |
5630652
to
b58d6da
Compare
What does the PR do
Simple test to check the text strings. Initial motivation is to remove such verifications from Squish tests and introduce them on lower level.
So this PR should replace verifications here:
status-desktop/test/e2e/gui/screens/community_settings_tokens.py
Line 105 in ea8827e
Why? Because I want to make Squish tests as functional as I can and QML tests are way faster