FIX: ensures thread is cleared when closing it (#21264)

This commit is contained in:
Joffrey JAFFEUX
2023-04-26 20:37:58 +02:00
committed by GitHub
parent 36db953bc6
commit 7f803a0335
5 changed files with 62 additions and 36 deletions

View File

@ -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

View File

@ -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