-
Notifications
You must be signed in to change notification settings - Fork 981
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
e2e: activity center medium group #13276
Conversation
Jenkins BuildsClick to see older builds (9)
|
100% of end-end tests have passed
Passed tests (4)Click to expand
|
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 work!
1 test - should be split into several, as there is no need to create a community only for 1 check within the whole group
All other requested things are minor changes.
self.home_1.home_button.double_click() | ||
|
||
self.device_1.just_fyi('Device1 rejects both chats and verifies they disappeared and not in Chats too') | ||
self.home_1.notifications_button.click() |
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.
Better to replace here self.home_1.notifications_unread_badge.wait_and_click(wait_time) as it may be that chats won't appear quickly and appium may not find them
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.
done
self.home_1.notifications_select_button.click() | ||
self.home_1.element_by_text_part(self.username_2[:10]).click() | ||
self.home_1.element_by_text_part(self.group_chat_name_1).click() | ||
self.home_1.notifications_reject_and_delete_button.click() |
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.
does this action close the activity centre?
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.
nope. We need to check first that there are no chats anymore after rejection (lines 44-47).
We go to the home screen on line 48
self.errors.append("Group chat is added on home after rejection") | ||
|
||
self.home_1.just_fyi("Verify there are still no chats after relogin") | ||
self.home_1.relogin() |
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.
better to use reopen_app instead - works faster
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.
done
|
||
self.device_1.just_fyi('Device1 accepts both chats (via Select All button) and verifies they disappeared ' | ||
'from activity center view but present on Chats view') | ||
self.home_1.notifications_button.click() |
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.
Better to replace here self.home_1.notifications_unread_badge.wait_and_click(wait_time) as it may be that chats won't appear quickly and appium may not find them
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.
done
self.errors.verify_no_errors() | ||
|
||
@marks.testrail_id(702185) | ||
def test_activity_center_notifications_on_mentions_in_groups_and_communities_empty_state(self): |
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.
better to remove creating community from group of tests and add simple check to the community [695842] itself
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.
removed
self.device_1_one_to_one_chat.close_button.click() | ||
|
||
self.device_1.just_fyi('Device1 removes 1-1 chat from home screen (for the next test)') | ||
self.home_1.home_button.double_click() |
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.
better to do preparation for next test in next test
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.
done
b000802
to
3104f35
Compare
100% of end-end tests have passed
Passed tests (4)Click to expand
|
2c07d2e
to
c3e5997
Compare
Group of medium tests for the activity center