Skip to content

Commit

Permalink
e2e: add new floating screen
Browse files Browse the repository at this point in the history
  • Loading branch information
churik authored and Parveshdhull committed Oct 17, 2023
1 parent e6e29a8 commit 6acae42
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/appium/views/base_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ def __init__(self, driver):
self.chat_floating_screen = BaseElement(self.driver, accessibility_id=":chat-floating-screen")
self.community_floating_screen = BaseElement(self.driver,
accessibility_id=":community-overview-floating-screen")
self.discover_communities_floating_screen = BaseElement(self.driver,
accessibility_id=":discover-communities-floating-screen")


self.jump_to_button = Button(self.driver, accessibility_id="jump-to")

Expand Down Expand Up @@ -389,8 +392,9 @@ def click_system_back_button(self, times=1):

def navigate_back_to_home_view(self, attempts=3):
counter = 0
while not self.chat_floating_screen.is_element_disappeared(2) \
or not self.community_floating_screen.is_element_disappeared(2):
while not self.chat_floating_screen.is_element_disappeared(1) \
or not self.community_floating_screen.is_element_disappeared(1) \
or not self.discover_communities_floating_screen.is_element_disappeared(1):
self.driver.press_keycode(4)
element = self.chats_tab
while not element.is_element_displayed(1) and counter <= attempts:
Expand Down

0 comments on commit 6acae42

Please sign in to comment.