Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anastasiyaig
Copy link
Contributor

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:

def verify_text_on_owner_token_panel(self):

Why? Because I want to make Squish tests as functional as I can and QML tests are way faster

@status-im-auto
Copy link
Member

status-im-auto commented Sep 19, 2024

Jenkins Builds

Click to see older builds (43)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f27e910 #2 2024-09-19 12:46:30 ~4 min tests/nim 📄log
✔️ f27e910 #2 2024-09-19 12:48:53 ~7 min macos/aarch64 🍎dmg
f27e910 #2 2024-09-19 12:50:45 ~9 min tests/ui 📄log
✔️ f27e910 #2 2024-09-19 12:51:41 ~10 min macos/x86_64 🍎dmg
f27e910 #3 2024-09-19 13:01:05 ~9 min tests/ui 📄log
✔️ f27e910 #3 2024-09-19 13:13:06 ~13 min linux-nix/x86_64 📦tgz
✔️ f27e910 #3 2024-09-19 13:16:29 ~16 min linux/x86_64 📦tgz
✔️ 89d81e8 #3 2024-09-19 13:57:22 ~4 min macos/aarch64 🍎dmg
✔️ 89d81e8 #3 2024-09-19 13:59:03 ~6 min tests/nim 📄log
✔️ 89d81e8 #3 2024-09-19 14:01:27 ~8 min macos/x86_64 🍎dmg
89d81e8 #4 2024-09-19 14:02:57 ~10 min tests/ui 📄log
✔️ 548c707 #4 2024-09-19 14:07:34 ~3 min macos/aarch64 🍎dmg
✔️ 548c707 #4 2024-09-19 14:09:59 ~6 min tests/nim 📄log
✔️ 548c707 #4 2024-09-19 14:11:09 ~7 min macos/x86_64 🍎dmg
548c707 #5 2024-09-19 14:13:44 ~10 min tests/ui 📄log
✔️ 548c707 #5 2024-09-19 14:18:52 ~15 min linux-nix/x86_64 📦tgz
✔️ 548c707 #5 2024-09-19 14:20:25 ~16 min linux/x86_64 📦tgz
548c707 #6 2024-09-19 20:19:24 ~9 min tests/ui 📄log
✔️ 1e527b9 #5 2024-09-20 07:18:25 ~4 min macos/aarch64 🍎dmg
✔️ 1e527b9 #5 2024-09-20 07:20:31 ~6 min tests/nim 📄log
✔️ 1e527b9 #5 2024-09-20 07:22:21 ~8 min macos/x86_64 🍎dmg
1e527b9 #7 2024-09-20 07:23:45 ~9 min tests/ui 📄log
✔️ 1e527b9 #6 2024-09-20 07:26:55 ~13 min linux-nix/x86_64 📦tgz
✔️ 1e527b9 #6 2024-09-20 07:32:53 ~18 min linux/x86_64 📦tgz
1e527b9 #8 2024-09-20 07:34:09 ~8 min tests/ui 📄log
1e527b9 #9 2024-09-20 08:17:53 ~10 min tests/ui 📄log
✔️ 21bb379 #6 2024-09-20 08:46:36 ~4 min macos/aarch64 🍎dmg
✔️ 21bb379 #6 2024-09-20 08:48:40 ~6 min tests/nim 📄log
✔️ 21bb379 #6 2024-09-20 08:50:18 ~8 min macos/x86_64 🍎dmg
21bb379 #10 2024-09-20 08:51:40 ~9 min tests/ui 📄log
✔️ 21bb379 #7 2024-09-20 08:53:31 ~11 min linux-nix/x86_64 📦tgz
✔️ 21bb379 #7 2024-09-20 08:58:00 ~15 min linux/x86_64 📦tgz
✔️ 9990c84 #7 2024-09-20 09:06:42 ~5 min macos/aarch64 🍎dmg
✔️ 9990c84 #7 2024-09-20 09:08:13 ~6 min tests/nim 📄log
✔️ 9990c84 #7 2024-09-20 09:10:23 ~8 min macos/x86_64 🍎dmg
9990c84 #11 2024-09-20 09:10:50 ~9 min tests/ui 📄log
✔️ 9990c84 #8 2024-09-20 09:13:46 ~12 min linux-nix/x86_64 📦tgz
✔️ 9990c84 #8 2024-09-20 09:18:22 ~16 min linux/x86_64 📦tgz
✔️ aaf8eec #8 2024-09-20 09:30:48 ~6 min macos/aarch64 🍎dmg
✔️ aaf8eec #8 2024-09-20 09:31:52 ~7 min tests/nim 📄log
✔️ aaf8eec #8 2024-09-20 09:33:40 ~9 min macos/x86_64 🍎dmg
aaf8eec #12 2024-09-20 09:34:26 ~9 min tests/ui 📄log
✔️ aaf8eec #9 2024-09-20 09:36:03 ~11 min linux-nix/x86_64 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5630652 #9 2024-09-20 09:41:52 ~4 min macos/aarch64 🍎dmg
✔️ 5630652 #9 2024-09-20 09:43:58 ~6 min tests/nim 📄log
✔️ 5630652 #9 2024-09-20 09:46:19 ~9 min macos/x86_64 🍎dmg
5630652 #13 2024-09-20 09:46:25 ~9 min tests/ui 📄log
✔️ 5630652 #10 2024-09-20 09:49:07 ~12 min linux-nix/x86_64 📦tgz
✔️ 5630652 #10 2024-09-20 09:55:32 ~18 min linux/x86_64 📦tgz
✔️ b58d6da #10 2024-09-24 12:34:06 ~4 min macos/aarch64 🍎dmg
✔️ b58d6da #10 2024-09-24 12:36:03 ~6 min tests/nim 📄log
✔️ b58d6da #10 2024-09-24 12:38:53 ~9 min macos/x86_64 🍎dmg
b58d6da #14 2024-09-24 12:39:11 ~9 min tests/ui 📄log
✔️ b58d6da #11 2024-09-24 12:43:08 ~13 min linux/x86_64 📦tgz
✔️ b58d6da #11 2024-09-24 12:43:19 ~14 min linux-nix/x86_64 📦tgz

@anastasiyaig anastasiyaig marked this pull request as ready for review September 19, 2024 12:52
@status-im-auto
Copy link
Member

Copy link
Member

@caybro caybro left a 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 :)

Copy link
Contributor

@alexjba alexjba left a 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

@status-im-auto
Copy link
Member

Copy link
Member

@caybro caybro left a 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 :)

@anastasiyaig
Copy link
Contributor Author

Looks good, let's see if it passes :)

fails with segfault, but it was even before my changes :/

@caybro
Copy link
Member

caybro commented Sep 20, 2024

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...

@status-im-auto
Copy link
Member

@anastasiyaig
Copy link
Contributor Author

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
but segfaults on CI constantly lol

@caybro
Copy link
Member

caybro commented Sep 20, 2024

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 but segfaults on CI constantly lol

I'll have a look :)

@caybro
Copy link
Member

caybro commented Sep 20, 2024

Did a full run locally:

Totals: 423 passed, 0 failed, 20 skipped, 0 blacklisted, 141490ms
********* Finished testing of QmlTests *********

@caybro caybro force-pushed the storybook-test-for-tokens-page branch 2 times, most recently from 21bb379 to 9990c84 Compare September 20, 2024 09:01
@status-im-auto
Copy link
Member

@caybro caybro force-pushed the storybook-test-for-tokens-page branch 2 times, most recently from aaf8eec to 5630652 Compare September 20, 2024 09:36
@status-im-auto
Copy link
Member

Comment on lines +79 to +103
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.")
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var settingsPage = findChild(mintTokensSettingsPanel.currentItem,
const settingsPage = findChild(mintTokensSettingsPanel.currentItem,

@anastasiyaig
Copy link
Contributor Author

it segfaults because the component crashes from time to time with qt 5.15.2
there is a real chance we move to newer QT soon #16359
i would like to keep that PR and test it with newer QT when the PR above lands

@anastasiyaig anastasiyaig self-assigned this Sep 23, 2024
@status-im-auto
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants