mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 22:35:03 +08:00
FIX: ensures thread is cleared when closing it (#21264)
This commit is contained in:
@ -6,6 +6,10 @@ module PageObjects
|
||||
def has_open_thread?(thread)
|
||||
has_css?(".chat-side-panel .chat-thread[data-id='#{thread.id}']")
|
||||
end
|
||||
|
||||
def has_no_open_thread?
|
||||
!has_css?(".chat-side-panel .chat-thread")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -11,6 +11,10 @@ module PageObjects
|
||||
header.find(".chat-thread__omu")
|
||||
end
|
||||
|
||||
def close
|
||||
header.find(".chat-thread__close").click
|
||||
end
|
||||
|
||||
def has_header_content?(content)
|
||||
header.has_content?(content)
|
||||
end
|
||||
|
Reference in New Issue
Block a user