some improve for sms delivery
This commit is contained in:
1 parent
1d3cff0b63
commit
ffc1ec0dcf
10 files changed
+134
-11
No files matched your search
@@ -18,6 +18,21 @@ class TicketConversationPage(BasePage):
|
||||
assert "reply_result=reply" in self.page.url
|
||||
expect(self.page.locator("[data-conversation]")).to_contain_text(body)
|
||||
|
||||
def open_composer(self):
|
||||
launch = self.page.locator("[data-composer-toggle]")
|
||||
expect(launch).to_be_visible()
|
||||
launch.click()
|
||||
expect(self.page.locator("[data-composer-shell]:not(.is-collapsed)")).to_be_visible()
|
||||
|
||||
def expect_latest_message_above_composer(self):
|
||||
latest = self.page.locator("[data-message]").last
|
||||
expect(latest).to_be_visible()
|
||||
latest.scroll_into_view_if_needed()
|
||||
message_box = latest.bounding_box()
|
||||
composer_box = self.page.locator("[data-composer-shell]").bounding_box()
|
||||
assert message_box and composer_box
|
||||
assert message_box["y"] + message_box["height"] <= composer_box["y"] + 1
|
||||
|
||||
@property
|
||||
def chat_guidance(self):
|
||||
return self.page.locator(".chat-coach-floating")
|
||||
|
||||
Reference in new issue
Block a user