mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 04:04:59 -05:00
DEV: scroll to reply button before click (#32663)
This will help with reliability of specs.
This commit is contained in:
@@ -250,7 +250,9 @@ module PageObjects
|
||||
end
|
||||
|
||||
def click_footer_reply
|
||||
find("#topic-footer-buttons .btn-primary", text: "Reply").click
|
||||
button = find("#topic-footer-buttons .btn-primary", text: "Reply")
|
||||
page.execute_script("arguments[0].scrollIntoView();", button)
|
||||
button.click
|
||||
self
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user