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

Test/simple tx #7984

Merged
merged 1 commit into from
Nov 20, 2022
Merged

Test/simple tx #7984

merged 1 commit into from
Nov 20, 2022

Conversation

Khushboo-dev-cpp
Copy link
Contributor

@Khushboo-dev-cpp Khushboo-dev-cpp commented Oct 20, 2022

Fixes #7983

What does the PR do

Enable test case for simple transaction

Squish wallet tests

StatusQ checklist

  • add documentation if necessary (new component, new feature)
  • update sandbox app
    • in case of new component, add new component page
    • in case of new features, add variation to existing component page
    • nice to have: add it to the demo application as well
  • test changes in both light and dark theme?

Screenshot of functionality (including design for comparison)

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

@Khushboo-dev-cpp Khushboo-dev-cpp changed the base branch from master to feat/router-hop October 20, 2022 13:00
@status-im-auto
Copy link
Member

status-im-auto commented Oct 20, 2022

Jenkins Builds

Click to see older builds (162)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b03849f #2 2022-10-20 13:06:07 ~5 min linux-cpp 📦pkg
✔️ b03849f #2 2022-10-20 13:12:20 ~11 min linux 📦tgz
✔️ b03849f #2 2022-10-20 13:13:50 ~12 min macos 📦dmg
✔️ b03849f #2 2022-10-20 13:24:54 ~23 min windows 📦exe
b03849f #1 2022-10-20 13:33:27 ~32 min e2e 📄log
b03849f #2 2022-10-20 13:50:39 ~17 min e2e 📄log
✔️ b03849f #3 2022-10-26 16:53:45 ~4 min linux-cpp 📦pkg
✔️ b03849f #3 2022-10-26 16:58:59 ~10 min macos 📦dmg
✔️ b03849f #3 2022-10-26 17:01:14 ~12 min linux 📦tgz
✔️ b03849f #3 2022-10-26 17:12:36 ~23 min windows 📦exe
b03849f #3 2022-10-26 18:02:14 ~30 min e2e 📄log
✔️ 1c1d9e4 #5 2022-10-27 07:49:29 ~5 min linux-cpp 📦pkg
✔️ 1c1d9e4 #5 2022-10-27 07:54:36 ~10 min macos 📦dmg
✔️ 1c1d9e4 #5 2022-10-27 07:56:41 ~12 min linux 📦tgz
1c1d9e4 #5 2022-10-27 08:22:57 ~6 min e2e 📄log
123ad2f #4 2022-10-27 08:15:58 ~32 min e2e 📄log
✔️ 03f59bb #7 2022-11-03 06:56:08 ~3 min linux-cpp 📦pkg
✔️ 03f59bb #7 2022-11-03 07:02:02 ~9 min macos 📦dmg
✔️ 03f59bb #7 2022-11-03 07:02:57 ~10 min linux 📦tgz
03f59bb #7 2022-11-03 07:43:23 ~25 min e2e 📄log
ee131bf #6 2022-11-03 07:17:49 ~26 min e2e 📄log
✔️ 2590a65 #8 2022-11-14 14:47:44 ~4 min linux-cpp 📦pkg
✔️ 2590a65 #8 2022-11-14 14:55:21 ~12 min macos 📦dmg
✔️ 3ce3aa3 #9 2022-11-14 15:02:30 ~4 min linux-cpp 📦pkg
⁉️ 3ce3aa3 #1 2022-11-14 15:02:51 ~4 min imports 📄log
✔️ 3ce3aa3 #9 2022-11-14 15:09:06 ~10 min macos 📦dmg
✔️ 3ce3aa3 #9 2022-11-14 15:10:02 ~11 min linux 📦tgz
✔️ 3ce3aa3 #10 2022-11-14 15:22:44 ~24 min windows 📦exe
⁉️ 3ce3aa3 #8 2022-11-14 15:36:36 ~17 min e2e 📄log
⁉️ 194bc1a #2 2022-11-15 13:54:15 ~4 min imports 📄log
✔️ 194bc1a #10 2022-11-15 14:00:18 ~10 min linux-cpp 📦pkg
✔️ 194bc1a #10 2022-11-15 14:06:37 ~17 min linux 📦tgz
⁉️ 194bc1a #9 2022-11-15 14:12:23 ~22 min e2e 📄log
⁉️ e30a940 #3 2022-11-15 14:33:16 ~10 min imports 📄log
✔️ e30a940 #11 2022-11-15 14:36:32 ~13 min linux-cpp 📦pkg
✔️ e30a940 #11 2022-11-15 14:46:22 ~23 min linux 📦tgz
✔️ e30a940 #11 2022-11-15 15:00:41 ~37 min macos 📦dmg
e30a940 #10 2022-11-15 15:05:57 ~22 min e2e 📄log
✔️ e30a940 #13 2022-11-15 15:22:38 ~24 min windows 📦exe
⁉️ af6a7dc #4 2022-11-16 10:19:24 ~4 min imports 📄log
✔️ af6a7dc #12 2022-11-16 10:19:56 ~5 min linux-cpp 📦pkg
✔️ af6a7dc #12 2022-11-16 10:26:24 ~11 min macos 📦dmg
✔️ af6a7dc #12 2022-11-16 10:30:06 ~15 min linux 📦tgz
✔️ af6a7dc #14 2022-11-16 10:42:54 ~27 min windows 📦exe
af6a7dc #11 2022-11-16 11:26:46 ~18 min e2e 📄log
✔️ 338326b #13 2022-11-16 11:32:53 ~3 min linux-cpp 📦pkg
⁉️ 338326b #5 2022-11-16 11:34:36 ~5 min imports 📄log
✔️ 338326b #13 2022-11-16 11:39:53 ~10 min linux 📦tgz
✔️ 338326b #13 2022-11-16 11:42:48 ~13 min macos 📦dmg
✔️ 338326b #15 2022-11-16 11:54:38 ~24 min windows 📦exe
338326b #12 2022-11-16 12:27:14 ~21 min e2e 📄log
✔️ 74f5d86 #14 2022-11-16 12:46:46 ~3 min linux-cpp 📦pkg
⁉️ 74f5d86 #6 2022-11-16 12:49:36 ~6 min imports 📄log
✔️ 74f5d86 #14 2022-11-16 12:53:10 ~9 min macos 📦dmg
✔️ 74f5d86 #14 2022-11-16 12:57:26 ~13 min linux 📦tgz
74f5d86 #13 2022-11-16 13:56:18 ~16 min e2e 📄log
⁉️ e179a2d #7 2022-11-16 14:06:35 ~4 min imports 📄log
✔️ e179a2d #15 2022-11-16 14:06:58 ~5 min linux-cpp 📦pkg
✔️ e179a2d #15 2022-11-16 14:12:39 ~10 min macos 📦dmg
✔️ e179a2d #15 2022-11-16 14:13:45 ~11 min linux 📦tgz
e179a2d #14 2022-11-16 15:01:43 ~15 min e2e 📄log
e179a2d #15 2022-11-17 08:17:47 ~15 min e2e 📄log
e179a2d #16 2022-11-17 09:33:14 ~14 min e2e 📄log
e179a2d #17 2022-11-17 09:56:44 ~14 min e2e 📄log
✔️ 4d0c43e #16 2022-11-17 11:50:15 ~2 min linux-cpp 📦pkg
⁉️ 4d0c43e #8 2022-11-17 11:52:15 ~4 min imports 📄log
✔️ 4d0c43e #16 2022-11-17 11:57:48 ~10 min linux 📦tgz
✔️ 4d0c43e #16 2022-11-17 11:57:49 ~10 min macos 📦dmg
4d0c43e #18 2022-11-17 12:08:15 ~20 min e2e 📄log
✔️ 4d0c43e #18 2022-11-17 12:13:22 ~25 min windows 📦exe
4d0c43e #19 2022-11-17 13:20:11 ~15 min e2e 📄log
4d0c43e #20 2022-11-17 13:54:19 ~14 min e2e 📄log
✔️ 6ee8569 #17 2022-11-17 19:42:36 ~2 min linux-cpp 📦pkg
⁉️ 6ee8569 #9 2022-11-17 19:45:02 ~5 min imports 📄log
✔️ 6ee8569 #17 2022-11-17 19:49:05 ~8 min macos 📦dmg
✔️ 6ee8569 #17 2022-11-17 19:49:19 ~9 min linux 📦tgz
6ee8569 #21 2022-11-17 19:57:15 ~17 min e2e 📄log
✔️ 6ee8569 #19 2022-11-17 20:02:58 ~22 min windows 📦exe
✔️ 80fe61a #18 2022-11-17 20:15:22 ~2 min linux-cpp 📦pkg
⁉️ 80fe61a #10 2022-11-17 20:17:14 ~4 min imports 📄log
✔️ 80fe61a #18 2022-11-17 20:23:01 ~10 min linux 📦tgz
✔️ 80fe61a #18 2022-11-17 20:24:35 ~11 min macos 📦dmg
80fe61a #22 2022-11-17 20:29:13 ~16 min e2e 📄log
✔️ 80fe61a #20 2022-11-17 20:35:53 ~23 min windows 📦exe
✔️ 1c1f07c #19 2022-11-18 08:16:48 ~2 min linux-cpp 📦pkg
⁉️ 1c1f07c #11 2022-11-18 08:18:45 ~4 min imports 📄log
✔️ 1c1f07c #19 2022-11-18 08:23:33 ~9 min macos 📦dmg
✔️ 1c1f07c #19 2022-11-18 08:24:42 ~10 min linux 📦tgz
1c1f07c #23 2022-11-18 08:33:19 ~19 min e2e 📄log
✔️ 1c1f07c #21 2022-11-18 08:39:38 ~25 min windows 📦exe
✔️ d66eddc #20 2022-11-18 08:53:59 ~2 min linux-cpp 📦pkg
⁉️ d66eddc #12 2022-11-18 08:56:13 ~4 min imports 📄log
✔️ d66eddc #20 2022-11-18 08:59:20 ~8 min macos 📦dmg
✔️ d66eddc #20 2022-11-18 09:00:48 ~9 min linux 📦tgz
d66eddc #24 2022-11-18 09:09:38 ~18 min e2e 📄log
✔️ d66eddc #22 2022-11-18 09:14:37 ~23 min windows 📦exe
✔️ f977662 #21 2022-11-18 09:43:41 ~2 min linux-cpp 📦pkg
⁉️ f977662 #13 2022-11-18 09:45:52 ~4 min imports 📄log
f977662 #25 2022-11-18 09:48:06 ~3 min e2e 📄log
✔️ f977662 #21 2022-11-18 09:50:31 ~9 min macos 📦dmg
✔️ f977662 #21 2022-11-18 09:51:23 ~10 min linux 📦tgz
✔️ f977662 #23 2022-11-18 10:08:10 ~27 min windows 📦exe
f977662 #26 2022-11-18 10:11:50 ~15 min e2e 📄log
✔️ 6cb95c3 #22 2022-11-18 10:40:34 ~2 min linux-cpp 📦pkg
6cb95c3 #22 2022-11-18 10:41:15 ~3 min macos 📄log
⁉️ 6cb95c3 #14 2022-11-18 10:42:34 ~4 min imports 📄log
✔️ 6cb95c3 #22 2022-11-18 10:48:19 ~10 min linux 📦tgz
6cb95c3 #27 2022-11-18 10:55:13 ~17 min e2e 📄log
✔️ 6cb95c3 #24 2022-11-18 11:01:26 ~23 min windows 📦exe
✔️ 2427795 #23 2022-11-18 11:44:40 ~2 min linux-cpp 📦pkg
⁉️ 2427795 #15 2022-11-18 11:47:03 ~5 min imports 📄log
✔️ 2427795 #23 2022-11-18 11:51:09 ~9 min macos 📦dmg
✔️ 2427795 #23 2022-11-18 11:53:48 ~11 min linux 📦tgz
⁉️ 2427795 #28 2022-11-18 12:07:06 ~15 min e2e 📄log
✔️ 2427795 #25 2022-11-18 12:07:30 ~25 min windows 📦exe
✔️ b80dbc2 #24 2022-11-18 12:17:49 ~2 min linux-cpp 📦pkg
⁉️ b80dbc2 #16 2022-11-18 12:20:00 ~4 min imports 📄log
✔️ b80dbc2 #24 2022-11-18 12:24:52 ~9 min macos 📦dmg
✔️ b80dbc2 #24 2022-11-18 12:27:31 ~12 min linux 📦tgz
✔️ b80dbc2 #26 2022-11-18 12:38:33 ~23 min windows 📦exe
b80dbc2 #29 2022-11-18 13:10:42 ~17 min e2e 📄log
✔️ c66f6ad #25 2022-11-18 13:17:33 ~2 min linux-cpp 📦pkg
⁉️ c66f6ad #17 2022-11-18 13:20:47 ~5 min imports 📄log
✔️ c66f6ad #25 2022-11-18 13:25:36 ~10 min linux 📦tgz
✔️ c66f6ad #25 2022-11-18 13:28:49 ~13 min macos 📦dmg
c66f6ad #30 2022-11-18 13:38:03 ~23 min e2e 📄log
✔️ c66f6ad #27 2022-11-18 13:38:58 ~23 min windows 📦exe
✔️ 3284c69 #26 2022-11-18 13:49:20 ~3 min linux-cpp 📦pkg
⁉️ 3284c69 #18 2022-11-18 13:50:34 ~4 min imports 📄log
✔️ 3284c69 #26 2022-11-18 13:55:05 ~8 min macos 📦dmg
✔️ 3284c69 #26 2022-11-18 13:57:48 ~11 min linux 📦tgz
✔️ 3284c69 #28 2022-11-18 14:14:16 ~28 min windows 📦exe
3284c69 #31 2022-11-18 14:34:44 ~17 min e2e 📄log
✔️ a58cfcb #27 2022-11-18 14:41:42 ~2 min linux-cpp 📦pkg
⁉️ a58cfcb #19 2022-11-18 14:43:51 ~4 min imports 📄log
✔️ a58cfcb #27 2022-11-18 14:51:03 ~11 min macos 📦dmg
✔️ a58cfcb #27 2022-11-18 14:51:04 ~11 min linux 📦tgz
✔️ a58cfcb #29 2022-11-18 15:04:22 ~25 min windows 📦exe
a58cfcb #32 2022-11-18 15:29:12 ~15 min e2e 📄log
⁉️ 969d437 #20 2022-11-18 15:43:55 ~4 min imports 📄log
✔️ 969d437 #28 2022-11-18 15:44:07 ~4 min linux-cpp 📦pkg
✔️ 969d437 #28 2022-11-18 15:51:46 ~12 min linux 📦tgz
✔️ 969d437 #28 2022-11-18 15:52:10 ~12 min macos 📦dmg
969d437 #33 2022-11-18 16:03:37 ~15 min e2e 📄log
✔️ 969d437 #30 2022-11-18 16:06:17 ~26 min windows 📦exe
✔️ 8289830 #29 2022-11-18 18:14:55 ~2 min linux-cpp 📦pkg
⁉️ 8289830 #21 2022-11-18 18:16:58 ~4 min imports 📄log
✔️ 8289830 #29 2022-11-18 18:22:41 ~10 min macos 📦dmg
✔️ 8289830 #29 2022-11-18 18:22:49 ~10 min linux 📦tgz
✔️ 8289830 #31 2022-11-18 18:37:47 ~25 min windows 📦exe
⁉️ 8289830 #34 2022-11-18 18:44:48 ~14 min e2e 📄log
✔️ ce3482f #30 2022-11-20 12:05:57 ~2 min linux-cpp 📦pkg
⁉️ ce3482f #22 2022-11-20 12:07:41 ~4 min imports 📄log
✔️ ce3482f #30 2022-11-20 12:11:34 ~8 min macos 📦dmg
✔️ ce3482f #30 2022-11-20 12:14:08 ~10 min linux 📦tgz
ce3482f #35 2022-11-20 12:22:08 ~18 min e2e 📄log
✔️ 5618a43 #31 2022-11-20 12:27:07 ~2 min linux-cpp 📦pkg
⁉️ 5618a43 #23 2022-11-20 12:28:50 ~4 min imports 📄log
✔️ 5618a43 #31 2022-11-20 12:32:37 ~8 min macos 📦dmg
✔️ 5618a43 #31 2022-11-20 12:34:58 ~10 min linux 📦tgz
⁉️ 5618a43 #36 2022-11-20 12:41:20 ~16 min e2e 📄log
✔️ 5618a43 #33 2022-11-20 12:49:13 ~24 min windows 📦exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ eb22c7a #32 2022-11-20 12:57:27 ~2 min linux-cpp 📦pkg
⁉️ eb22c7a #24 2022-11-20 12:59:31 ~5 min imports 📄log
✔️ eb22c7a #32 2022-11-20 13:02:37 ~8 min macos 📦dmg
✔️ eb22c7a #32 2022-11-20 13:04:04 ~9 min linux 📦tgz
eb22c7a #37 2022-11-20 13:14:49 ~20 min e2e 📄log
✔️ eb22c7a #34 2022-11-20 13:18:11 ~23 min windows 📦exe
✔️ 855c44b #33 2022-11-20 13:20:54 ~2 min linux-cpp 📦pkg
⁉️ 855c44b #25 2022-11-20 13:22:47 ~4 min imports 📄log
✔️ 855c44b #33 2022-11-20 13:26:45 ~8 min macos 📦dmg
✔️ 855c44b #33 2022-11-20 13:29:17 ~11 min linux 📦tgz
⁉️ 855c44b #38 2022-11-20 13:35:14 ~16 min e2e 📄log
✔️ 855c44b #35 2022-11-20 13:42:10 ~23 min windows 📦exe

@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the feat/router-hop branch 7 times, most recently from be983d4 to e661cd0 Compare October 26, 2022 12:40
Base automatically changed from feat/router-hop to master October 26, 2022 16:48
@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the test/simpleTx branch 2 times, most recently from 123ad2f to 1c1d9e4 Compare October 27, 2022 07:44
@Khushboo-dev-cpp Khushboo-dev-cpp requested review from a team, iurimatias and alexjba and removed request for a team October 27, 2022 07:44
@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the test/simpleTx branch 2 times, most recently from ee131bf to 03f59bb Compare November 3, 2022 06:52
@alexjba alexjba self-requested a review November 3, 2022 13:35
@Khushboo-dev-cpp Khushboo-dev-cpp requested review from a team and removed request for a team November 3, 2022 14:03
Copy link
Contributor

@stefandunca stefandunca left a comment

Choose a reason for hiding this comment

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

Good job. I left some questions hoping to help.

@@ -174,6 +174,8 @@ def check_tenor_gif_preview_is_enabled(self):
verify(tenorSwitch.enabled, "Tenor GIFs preview is enabled")

def toggle_test_networks(self):
# needed cause if we do it immmediately the toggle doesn't work
time.sleep(2)
Copy link
Contributor

@stefandunca stefandunca Nov 7, 2022

Choose a reason for hiding this comment

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

@noeliaSD is this hardcoded sleep instead of waiting for the toggle to become active a instability point that you mentioned in your presentation?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it could cause inestability in tests. We should try to avoid using sleeps and use waitFor instead whenever possible

click_obj_by_name(MainWalletScreen.SEND_BUTTON_FOOTER.value)

squish.waitFor("float(str(wait_and_get_obj(MainWalletScreen.TOTAL_CURRENCY_BALANCE.value).text).split(' ')[0]) > 0", 60*1000)
Copy link
Contributor

Choose a reason for hiding this comment

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

@Khushboo-dev-cpp wondering how is this working.

I understand that squish will run this script for one minute or until the specific value is above 0. Is this right?

If yes, can't the same also be accomplished in Python by getting the object by the real name MainWalletScreen.TOTAL_CURRENCY_BALANCE and accessing the text property?

The only improvement, I see, over the scripting technique is that it might provide more meaningful errors and better debugging opportunities.

@Khushboo-dev-cpp Khushboo-dev-cpp force-pushed the test/simpleTx branch 5 times, most recently from 194bc1a to e30a940 Compare November 15, 2022 14:22
@alaibe alaibe force-pushed the test/simpleTx branch 9 times, most recently from 1c1f07c to d66eddc Compare November 18, 2022 08:51
@@ -350,7 +347,9 @@ def verify_saved_address_doesnt_exist(self, name: str):
verify_failure(f'FAIL: saved address {name} exists')

def verify_transaction(self):
print("TODO: fix notification and ensure there is one")
ephemeral_notification_list = get_obj(MainWalletScreen.EPHEMERAL_NOTIFICATION_LIST.value)
squish.waitFor("ephemeral_notification_list.count > 0", 60*1000)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we use the driver instead of doing a direct call to squish here?

print("TODO: fix notification and ensure there is one")
ephemeral_notification_list = get_obj(MainWalletScreen.EPHEMERAL_NOTIFICATION_LIST.value)
squish.waitFor("ephemeral_notification_list.count > 0", 60*1000)
verify(str(ephemeral_notification_list.itemAtIndex(0).primaryText ) == "Transaction pending...", "Tx was not sent!")
Copy link
Contributor

Choose a reason for hiding this comment

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

What will happen with this comparison if we want to run the tests in another language? :P

Could we use instead the enabled property??

@alaibe alaibe force-pushed the test/simpleTx branch 12 times, most recently from 5618a43 to eb22c7a Compare November 20, 2022 12:54
@alaibe alaibe merged commit 8084b90 into master Nov 20, 2022
@alaibe alaibe deleted the test/simpleTx branch November 20, 2022 13:44
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.

Add squish test for simple Tx
6 participants