DEV: scroll to reply button before click (#32663)

This will help with reliability of specs.
This commit is contained in:
Joffrey JAFFEUX
2025-05-09 11:46:15 +02:00
committed by GitHub
parent b28df068fc
commit 38ee9a0a79
+3 -1
View File
@@ -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