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(e2e/tst_communityPermissions): New tests case tst_communityPermissions #9922

Merged
merged 1 commit into from
May 5, 2023

Conversation

noeliaSD
Copy link
Contributor

@noeliaSD noeliaSD commented Mar 16, 2023

Closes #9007

What does the PR do

  • Created new test case for community permissions.
  • Added new scenario "Welcome Permissions Screen content validation"

Affected areas

e2e/tst_communityPermissions

@status-im-auto
Copy link
Member

status-im-auto commented Mar 16, 2023

Jenkins Builds

Click to see older builds (142)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 223dec9 #1 2023-03-16 13:41:49 ~6 min tests-nim 📄log
✔️ 223dec9 #1 2023-03-16 13:41:52 ~6 min imports 📄log
✔️ 223dec9 #1 2023-03-16 13:48:57 ~13 min linux 📦tgz
✔️ 223dec9 #1 2023-03-16 13:49:35 ~14 min macos 🍎dmg
✖️ 223dec9 #1 2023-03-16 13:56:07 ~20 min linux-e2e 📄log
✔️ 223dec9 #1 2023-03-16 14:07:25 ~32 min windows 💿exe
✔️ 407115f #2 2023-03-16 16:04:38 ~7 min imports 📄log
✔️ 407115f #2 2023-03-16 16:05:31 ~8 min tests-nim 📄log
✔️ 407115f #2 2023-03-16 16:07:08 ~9 min macos 🍎dmg
✔️ 407115f #2 2023-03-16 16:10:59 ~13 min linux 📦tgz
✔️ 407115f #2 2023-03-16 16:25:32 ~28 min windows 💿exe
✔️ 407115f #2 2023-03-16 16:26:17 ~28 min linux-e2e 📄log
✔️ 407115f #1 2023-04-14 12:37:20 ~22 min macos 🍎dmg
✔️ fb54113 #3 2023-04-18 10:39:01 ~5 min tests/nim 📄log
✔️ fb54113 #1 2023-04-18 10:39:41 ~5 min tests/imports 📄log
✔️ fb54113 #2 2023-04-18 10:42:06 ~8 min macos/aarch64 🍎dmg
✔️ fb54113 #3 2023-04-18 10:43:49 ~9 min macos/x86_64 🍎dmg
✔️ fb54113 #3 2023-04-18 10:47:49 ~13 min linux/x86_64 📦tgz
✔️ fb54113 #1 2023-04-18 10:53:30 ~19 min tests/e2e 📄log
✔️ fb54113 #3 2023-04-18 11:05:38 ~31 min windows/x86_64 💿exe
✔️ 5bdce62 #2 2023-04-18 11:39:47 ~4 min tests/imports 📄log
✔️ 5bdce62 #4 2023-04-18 11:40:06 ~5 min tests/nim 📄log
✔️ 5bdce62 #3 2023-04-18 11:41:00 ~6 min macos/aarch64 🍎dmg
✔️ 5bdce62 #4 2023-04-18 11:49:59 ~15 min linux/x86_64 📦tgz
✔️ 5bdce62 #2 2023-04-18 11:54:57 ~20 min tests/e2e 📄log
✔️ 5bdce62 #4 2023-04-18 12:01:05 ~26 min windows/x86_64 💿exe
✔️ 5bdce62 #4 2023-04-18 13:11:41 ~1 hr 36 min macos/x86_64 🍎dmg
✔️ a4a5601 #6 2023-04-20 12:46:42 ~5 min tests/nim 📄log
✔️ a4a5601 #4 2023-04-20 12:47:01 ~5 min tests/imports 📄log
✔️ a4a5601 #5 2023-04-20 12:48:50 ~7 min macos/aarch64 🍎dmg
✔️ a4a5601 #6 2023-04-20 12:51:18 ~10 min macos/x86_64 🍎dmg
✔️ a4a5601 #6 2023-04-20 12:56:01 ~15 min linux/x86_64 📦tgz
✖️ a4a5601 #4 2023-04-20 13:01:16 ~20 min tests/e2e 📄log
✔️ a4a5601 #6 2023-04-20 13:12:31 ~31 min windows/x86_64 💿exe
✔️ 485d3df #5 2023-04-20 13:53:03 ~8 min tests/imports 📄log
✔️ 485d3df #7 2023-04-20 13:55:07 ~10 min tests/nim 📄log
✔️ 0a824d6 #9 2023-04-20 14:09:48 ~8 min macos/x86_64 🍎dmg
✔️ 0a824d6 #7 2023-04-20 14:10:30 ~9 min tests/imports 📄log
✔️ 0a824d6 #9 2023-04-20 14:11:59 ~10 min tests/nim 📄log
✔️ 0a824d6 #9 2023-04-20 14:15:25 ~14 min linux/x86_64 📦tgz
✖️ 0a824d6 #7 2023-04-20 14:21:29 ~20 min tests/e2e 📄log
✔️ 0a824d6 #9 2023-04-20 14:31:02 ~29 min windows/x86_64 💿exe
✔️ 0a824d6 #8 2023-04-20 14:31:40 ~30 min macos/aarch64 🍎dmg
✔️ b1b8e8b #8 2023-04-21 09:50:10 ~5 min tests/imports 📄log
✔️ b1b8e8b #10 2023-04-21 09:51:09 ~6 min tests/nim 📄log
✔️ b1b8e8b #9 2023-04-21 09:53:13 ~8 min macos/aarch64 🍎dmg
✔️ b1b8e8b #10 2023-04-21 09:53:25 ~8 min macos/x86_64 🍎dmg
✔️ b1b8e8b #10 2023-04-21 09:58:53 ~14 min linux/x86_64 📦tgz
✖️ b1b8e8b #8 2023-04-21 10:05:39 ~20 min tests/e2e 📄log
✔️ b1b8e8b #10 2023-04-21 10:12:25 ~27 min windows/x86_64 💿exe
✖️ b1b8e8b #11 2023-04-21 10:16:51 ~1 min windows/x86_64 💿exe
✖️ b1b8e8b #9 2023-04-21 10:18:57 ~1 min tests/e2e 📄log
✔️ fc10834 #10 2023-04-21 12:22:20 ~4 min tests/imports 📄log
✔️ fc10834 #12 2023-04-21 12:23:11 ~5 min tests/nim 📄log
✔️ fc10834 #11 2023-04-21 12:24:45 ~6 min macos/aarch64 🍎dmg
✔️ fc10834 #12 2023-04-21 12:28:52 ~11 min macos/x86_64 🍎dmg
✔️ fc10834 #12 2023-04-21 12:30:26 ~12 min linux/x86_64 📦tgz
✔️ fc10834 #11 2023-04-21 12:38:14 ~20 min tests/e2e 📄log
✔️ fc10834 #13 2023-04-21 12:42:56 ~25 min windows/x86_64 💿exe
✔️ 1f31008 #11 2023-04-21 14:03:58 ~4 min tests/imports 📄log
✔️ 1f31008 #13 2023-04-21 14:04:01 ~5 min tests/nim 📄log
✔️ 1f31008 #12 2023-04-21 14:04:30 ~5 min macos/aarch64 🍎dmg
✔️ 1f31008 #13 2023-04-21 14:07:12 ~8 min macos/x86_64 🍎dmg
✔️ 1f31008 #13 2023-04-21 14:10:40 ~11 min linux/x86_64 📦tgz
✔️ 1f31008 #12 2023-04-21 14:16:20 ~17 min tests/e2e 📄log
✔️ 1f31008 #14 2023-04-21 14:26:06 ~27 min windows/x86_64 💿exe
✔️ 35eb142 #12 2023-05-03 11:05:53 ~4 min tests/imports 📄log
✖️ 35eb142 #14 2023-05-03 11:06:19 ~4 min tests/nim 📄log
35eb142 #13 2023-05-03 11:07:06 ~5 min macos/aarch64 📄log
✖️ 35eb142 #13 2023-05-03 11:09:13 ~7 min tests/e2e 📄log
35eb142 #15 2023-05-03 11:19:49 ~18 min windows/x86_64 📄log
af8883c #14 2023-05-03 13:01:58 ~3 min macos/aarch64 📄log
✖️ af8883c #14 2023-05-03 13:03:13 ~4 min tests/e2e 📄log
✔️ af8883c #13 2023-05-03 13:03:48 ~5 min tests/imports 📄log
✖️ af8883c #15 2023-05-03 13:04:52 ~6 min tests/nim 📄log
af8883c #15 2023-05-03 13:07:39 ~9 min linux/x86_64 📄log
af8883c #16 2023-05-03 13:19:59 ~21 min windows/x86_64 📄log
6c278a5 #15 2023-05-03 13:30:25 ~2 min macos/aarch64 📄log
✖️ 6c278a5 #16 2023-05-03 13:33:05 ~4 min tests/nim 📄log
✔️ 6c278a5 #14 2023-05-03 13:33:44 ~5 min tests/imports 📄log
6c278a5 #17 2023-05-03 13:37:52 ~9 min windows/x86_64 📄log
ab909bc #16 2023-05-03 14:03:48 ~2 min macos/aarch64 📄log
ab909bc #17 2023-05-03 14:06:15 ~4 min macos/x86_64 📄log
✖️ ab909bc #17 2023-05-03 14:06:32 ~5 min tests/nim 📄log
✔️ ab909bc #15 2023-05-03 14:06:39 ~5 min tests/imports 📄log
92d3bfe #19 2023-05-03 14:14:43 ~4 min macos/x86_64 📄log
5b7cb95 #19 2023-05-03 14:17:05 ~2 min macos/aarch64 📄log
55a8fc2 #21 2023-05-03 14:20:48 ~2 min macos/aarch64 📄log
55a8fc2 #22 2023-05-03 14:22:16 ~3 min macos/x86_64 📄log
✖️ 55a8fc2 #22 2023-05-03 14:23:50 ~5 min tests/nim 📄log
✖️ 55a8fc2 #21 2023-05-03 14:24:33 ~5 min tests/e2e 📄log
✔️ 55a8fc2 #20 2023-05-03 14:25:02 ~6 min tests/imports 📄log
55a8fc2 #22 2023-05-03 14:28:02 ~9 min linux/x86_64 📄log
55a8fc2 #23 2023-05-03 14:31:48 ~13 min windows/x86_64 📄log
✔️ 9fa1fa6 #21 2023-05-03 16:30:29 ~5 min tests/imports 📄log
✔️ 9fa1fa6 #23 2023-05-03 16:30:50 ~6 min tests/nim 📄log
✔️ 9fa1fa6 #22 2023-05-03 16:31:25 ~6 min macos/aarch64 🍎dmg
✔️ 9fa1fa6 #23 2023-05-03 16:34:00 ~9 min macos/x86_64 🍎dmg
✔️ 9fa1fa6 #23 2023-05-03 16:37:18 ~12 min linux/x86_64 📦tgz
✔️ 9fa1fa6 #24 2023-05-03 16:52:59 ~28 min windows/x86_64 💿exe
✔️ b954008 #22 2023-05-03 17:54:18 ~5 min tests/imports 📄log
✔️ b2648d5 #23 2023-05-03 17:59:10 ~4 min tests/imports 📄log
✔️ b2648d5 #25 2023-05-03 17:59:55 ~5 min tests/nim 📄log
✔️ b2648d5 #24 2023-05-03 18:02:43 ~8 min macos/aarch64 🍎dmg
✖️ b2648d5 #24 2023-05-03 18:19:10 ~24 min tests/e2e 📄log
✔️ 60301d6 #24 2023-05-04 06:10:33 ~5 min tests/imports 📄log
✔️ 60301d6 #26 2023-05-04 06:11:12 ~5 min tests/nim 📄log
✔️ 60301d6 #25 2023-05-04 06:11:37 ~6 min macos/aarch64 🍎dmg
✔️ 60301d6 #26 2023-05-04 06:14:30 ~9 min macos/x86_64 🍎dmg
✔️ 60301d6 #26 2023-05-04 06:17:42 ~12 min linux/x86_64 📦tgz
✔️ 60301d6 #27 2023-05-04 06:34:13 ~28 min windows/x86_64 💿exe
✖️ 60301d6 #25 2023-05-04 06:35:01 ~29 min tests/e2e 📄log
✔️ 7f64b12 #27 2023-05-04 06:54:50 ~3 min tests/nim 📄log
✔️ 7f64b12 #25 2023-05-04 06:55:59 ~5 min tests/imports 📄log
✔️ 7f64b12 #26 2023-05-04 06:56:32 ~5 min macos/aarch64 🍎dmg
✔️ 7f64b12 #27 2023-05-04 06:59:13 ~8 min macos/x86_64 🍎dmg
✔️ 7f64b12 #27 2023-05-04 07:03:19 ~12 min linux/x86_64 📦tgz
✔️ 7f64b12 #28 2023-05-04 07:16:14 ~25 min windows/x86_64 💿exe
✖️ 7f64b12 #26 2023-05-04 07:20:58 ~30 min tests/e2e 📄log
✔️ 1016443 #26 2023-05-04 07:32:36 ~5 min tests/imports 📄log
✔️ 1016443 #28 2023-05-04 07:32:56 ~5 min tests/nim 📄log
✔️ 1016443 #27 2023-05-04 07:32:59 ~5 min macos/aarch64 🍎dmg
✔️ 1016443 #28 2023-05-04 07:35:23 ~8 min macos/x86_64 🍎dmg
✔️ 1016443 #28 2023-05-04 07:39:32 ~12 min linux/x86_64 📦tgz
✔️ c2a0fbd #27 2023-05-04 07:51:19 ~3 min tests/imports 📄log
✔️ c2a0fbd #28 2023-05-04 07:53:42 ~6 min macos/aarch64 🍎dmg
✔️ c2a0fbd #29 2023-05-04 07:53:59 ~6 min tests/nim 📄log
✔️ c2a0fbd #29 2023-05-04 07:55:40 ~8 min macos/x86_64 🍎dmg
✔️ c2a0fbd #29 2023-05-04 08:01:53 ~14 min linux/x86_64 📦tgz
✔️ b21f97e #29 2023-05-04 08:25:50 ~5 min tests/imports 📄log
✔️ b21f97e #31 2023-05-04 08:26:06 ~5 min tests/nim 📄log
✔️ b21f97e #30 2023-05-04 08:27:07 ~6 min macos/aarch64 🍎dmg
✖️ b21f97e #30 2023-05-04 08:27:29 ~7 min tests/e2e 📄log
✔️ b21f97e #31 2023-05-04 08:29:28 ~9 min macos/x86_64 🍎dmg
✔️ b21f97e #32 2023-05-04 08:46:30 ~26 min windows/x86_64 💿exe
✔️ 2985b39 #30 2023-05-04 09:00:39 ~5 min tests/imports 📄log
✔️ 2985b39 #31 2023-05-04 09:01:23 ~6 min macos/aarch64 🍎dmg
✔️ 2985b39 #32 2023-05-04 09:02:52 ~7 min tests/nim 📄log
✔️ 2985b39 #32 2023-05-04 09:03:26 ~8 min macos/x86_64 🍎dmg
✔️ 2985b39 #32 2023-05-04 09:07:28 ~12 min linux/x86_64 📦tgz
✔️ 2985b39 #33 2023-05-04 09:20:17 ~25 min windows/x86_64 💿exe
✖️ 2985b39 #31 2023-05-04 09:24:56 ~29 min tests/e2e 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 2e57673 #31 2023-05-04 09:37:32 ~5 min tests/imports 📄log
✔️ 2e57673 #33 2023-05-04 09:38:33 ~6 min tests/nim 📄log
✔️ 2e57673 #32 2023-05-04 09:39:21 ~7 min macos/aarch64 🍎dmg
✔️ 2e57673 #33 2023-05-04 09:40:44 ~8 min macos/x86_64 🍎dmg
✔️ 2e57673 #33 2023-05-04 09:44:34 ~12 min linux/x86_64 📦tgz
✔️ 2e57673 #34 2023-05-04 09:57:50 ~25 min windows/x86_64 💿exe
✔️ 2e57673 #32 2023-05-04 10:00:03 ~27 min tests/e2e 📄log
✔️ 2fe6bf7 #32 2023-05-05 12:21:18 ~4 min tests/imports 📄log
✔️ 2fe6bf7 #33 2023-05-05 12:23:12 ~6 min macos/aarch64 🍎dmg
✔️ 2fe6bf7 #34 2023-05-05 12:23:18 ~6 min tests/nim 📄log
✔️ 2fe6bf7 #34 2023-05-05 12:25:53 ~9 min macos/x86_64 🍎dmg
✔️ 2fe6bf7 #34 2023-05-05 12:28:47 ~12 min linux/x86_64 📦tgz
✔️ 2fe6bf7 #35 2023-05-05 12:45:43 ~29 min windows/x86_64 💿exe
✔️ 2fe6bf7 #33 2023-05-05 12:46:47 ~30 min tests/e2e 📄log

@anastasiyaig anastasiyaig force-pushed the test/issue-9007-2 branch 4 times, most recently from 0a824d6 to b1b8e8b Compare April 21, 2023 09:44
@anastasiyaig anastasiyaig self-assigned this Apr 21, 2023
@anastasiyaig anastasiyaig marked this pull request as ready for review April 21, 2023 10:42
@anastasiyaig anastasiyaig changed the title WIP: test(e2e/tst_communityPermissions): New tests case tst_communityPermissions test(e2e/tst_communityPermissions): New tests case tst_communityPermissions Apr 21, 2023
@anastasiyaig anastasiyaig force-pushed the test/issue-9007-2 branch 2 times, most recently from aadaaa5 to fc10834 Compare April 21, 2023 12:17
Copy link
Member

@jrainville jrainville 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. I just had a question about testing strings

test/ui-test/src/screens/StatusCommunityScreen.py Outdated Show resolved Hide resolved
test/ui-test/src/screens/StatusCommunityScreen.py Outdated Show resolved Hide resolved
@noeliaSD
Copy link
Contributor Author

noeliaSD commented Apr 24, 2023

Testing it locally it is sometimes stuck in one pages in the background steps (create community). It seems some inestability issue depending on the machine used. Maybe @StateOf-Vlado you could take a look and help with that as you've been doing with the stability tasks!

Here a video that displayes where it is blocked:

Screen.Recording.2023-04-24.at.10.17.18.mov

@anastasiyaig anastasiyaig force-pushed the test/issue-9007-2 branch 12 times, most recently from 7f64b12 to 1016443 Compare May 4, 2023 07:26
@anastasiyaig anastasiyaig force-pushed the test/issue-9007-2 branch 5 times, most recently from 2985b39 to 2e57673 Compare May 4, 2023 09:32
communityPermissions_welcome_settings_subtitle = {"container": statusDesktop_mainWindow, "objectName": "welcomeSettingsSubtitle", "type": "StatusBaseText", "visible": True}
communityPermissions_welcome_settings_checkList_element1 = {"container": statusDesktop_mainWindow, "objectName": "checkListText_0", "type": "StatusBaseText", "visible": True}
communityPermissions_welcome_settings_checkList_element2 = {"container": statusDesktop_mainWindow, "objectName": "checkListText_1", "type": "StatusBaseText", "visible": True}
communityPermissions_welcome_settings_checkList_element3 = {"container": statusDesktop_mainWindow, "objectName": "checkListText_2", "type": "StatusBaseText", "visible": True}
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think, can we use more of the 3 items in the future? If yes, we will need to add:
communityPermissions_welcome_settings_checkList_element3 = {"container": statusDesktop_mainWindow, "objectName": "checkListText_2", "type": "StatusBaseText", "visible": True}
So, maybe it is better to have one template for the list item:
communityPermissions_welcome_settings_checkList_element = {"container": statusDesktop_mainWindow, "text": "", "type": "StatusBaseText", "visible": True}

Copy link
Contributor

Choose a reason for hiding this comment

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

this screen wont change i hope (no more options expected to be added). I will leave it as is for now, but we can improve any time

# Check if the lists have the same elements in the same order
for i in range(len(checklist)):
if checklist[i] != list[i]:
return False
Copy link
Contributor

Choose a reason for hiding this comment

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

these 13 lines can be replaced on:
for permission in list:
communityPermissions_welcome_settings_checkList_element['text'] = permission
squish.waitForObject(communityPermissions_welcome_settings_checkList_element) - or replace to any method from drivers folder that verify object

@squ1sher squ1sher self-requested a review May 4, 2023 11:08
@glitchminer glitchminer self-requested a review May 4, 2023 12:00
@anastasiyaig anastasiyaig merged commit 81a7932 into master May 5, 2023
@anastasiyaig anastasiyaig deleted the test/issue-9007-2 branch May 5, 2023 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Community Permissions - Squish] Add Welcome permission screen user story
6 participants