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

feat(@desktop/wallet): Write Unit tests for SimpleSendModal, SimpleTransactionFees and SendModalFooter #17145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Khushboo-dev-cpp
Copy link
Contributor

fixes #17123y

What does the PR do

Writing Unit Tests for -

  1. SimpleSendModal
  2. SimpleTransactionFees
  3. SendModalFooter

Affected areas

SimpleSendModal

Architecture compliance

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

@Khushboo-dev-cpp Khushboo-dev-cpp requested review from dlipicar and removed request for a team January 29, 2025 09:10
@status-im-auto
Copy link
Member

status-im-auto commented Jan 29, 2025

Jenkins Builds

Click to see older builds (7)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9979bc5 #1 2025-01-29 09:17:35 ~7 min macos/aarch64 🍎dmg
✔️ 9979bc5 #1 2025-01-29 09:19:50 ~9 min tests/nim 📄log
9979bc5 #1 2025-01-29 09:23:45 ~13 min tests/ui 📄log
✔️ 9979bc5 #1 2025-01-29 09:25:10 ~14 min macos/x86_64 🍎dmg
✔️ 9979bc5 #1 2025-01-29 09:28:16 ~17 min linux-nix/x86_64 📦tgz
✔️ 9979bc5 #1 2025-01-29 09:29:32 ~19 min linux/x86_64 📦tgz
✔️ 9979bc5 #1 2025-01-29 09:33:04 ~22 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 3e99d1e #2 2025-01-29 10:05:46 ~5 min macos/aarch64 🍎dmg
✔️ 3e99d1e #2 2025-01-29 10:08:45 ~8 min tests/nim 📄log
✔️ 3e99d1e #2 2025-01-29 10:11:18 ~11 min macos/x86_64 🍎dmg
✔️ 3e99d1e #2 2025-01-29 10:12:45 ~12 min tests/ui 📄log
✔️ 3e99d1e #2 2025-01-29 10:14:13 ~14 min linux-nix/x86_64 📦tgz
✔️ 3e99d1e #2 2025-01-29 10:23:20 ~23 min linux/x86_64 📦tgz
✔️ 3e99d1e #2 2025-01-29 10:28:40 ~28 min windows/x86_64 💿exe
✔️ a933ecc #3 2025-01-30 22:04:38 ~7 min macos/aarch64 🍎dmg
✔️ a933ecc #3 2025-01-30 22:06:12 ~8 min tests/nim 📄log
✔️ a933ecc #3 2025-01-30 22:10:14 ~12 min tests/ui 📄log
✔️ a933ecc #3 2025-01-30 22:11:16 ~13 min macos/x86_64 🍎dmg
✔️ a933ecc #3 2025-01-30 22:16:52 ~19 min linux-nix/x86_64 📦tgz
✔️ a933ecc #3 2025-01-30 22:17:59 ~20 min linux/x86_64 📦tgz
✔️ a933ecc #3 2025-01-30 22:18:00 ~20 min windows/x86_64 💿exe

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.

LGTM once the tests actually pass ;)

compare(controlUnderTest.color, Theme.palette.baseColor3)
verify(controlUnderTest.dropShadowEnabled)

compare(estTimeLabel.text, qsTr("Est time"))
Copy link
Member

Choose a reason for hiding this comment

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

No need to use qsTr() in tests at all; they always run in English :)

storybook/qmlTests/tests/tst_SimpleSendModal.qml Outdated Show resolved Hide resolved
@Khushboo-dev-cpp Khushboo-dev-cpp changed the title feat(@desktop/wallet): Wrtie Unit tests for SimpleSendModal, SimpleTransactionFees and SendModalFooter feat(@desktop/wallet): Write Unit tests for SimpleSendModal, SimpleTransactionFees and SendModalFooter Jan 30, 2025
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.

3 participants