mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 17:37:15 +08:00
FIX: Destroy draft when clicking the Discard button (#28552)
This commit is contained in:
@ -11,6 +11,10 @@ module PageObjects
|
||||
def closed?
|
||||
has_no_css?(".modal.d-modal#{MODAL_SELECTOR}")
|
||||
end
|
||||
|
||||
def click_save
|
||||
footer.find("button.save-draft").click
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user