Skip to content

Commit 5fdaf00

Browse files
yevh-berdnykcammellos
authored andcommitted
e2e: updated join community
1 parent 4e3ce54 commit 5fdaf00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/appium/views/chat_view.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ def __init__(self, driver):
416416
self.membership_request_pending_text = Text(self.driver, translation_id="membership-request-pending")
417417
self.join_button = Button(self.driver, accessibility_id="show-request-to-join-screen-button")
418418
self.join_community_button = Button(self.driver, accessibility_id="join-community-button")
419+
self.slide_to_request_to_join_button = Button(
420+
self.driver, xpath="(//*[@resource-id='slide-button-track']//*[@content-desc='icon'])[1]")
419421
self.follow_button = Button(self.driver, translation_id="follow")
420422
self.community_tags = BaseElement(
421423
self.driver, xpath="//*[@content-desc='chat-name-text']/../android.widget.HorizontalScrollView")
@@ -434,7 +436,7 @@ def join_community(self, password=common_password, open_community=True):
434436
self.driver.info("Joining community")
435437
ChatView(self.driver).chat_element_by_text("https://status.app/c/").click_on_link_inside_message_body()
436438
self.join_button.wait_and_click(120)
437-
self.join_community_button.scroll_and_click()
439+
self.slide_to_request_to_join_button.swipe_right_on_element(width_percentage=16)
438440
self.password_input.send_keys(password)
439441
Button(self.driver,
440442
xpath="//*[@content-desc='password-input']/../following-sibling::*//*[@text='Join Community']").click()

0 commit comments

Comments
 (0)