blob: 6a187dcedc5db2db92bc04fec59b635e27268bf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# frozen_string_literal: true
module QA
module Page
module Component
module RichTextPopover
extend QA::Page::PageConcern
def self.included(base)
super
base.view 'app/assets/javascripts/vue_shared/components/markdown/editor_mode_switcher.vue' do
element :rich_text_promo_popover
end
base.view 'app/views/shared/_broadcast_message.html.haml' do
element :close_button
end
end
def close_rich_text_promo_popover_if_present
return unless has_element?(:rich_text_promo_popover, wait: 0)
within_element(:rich_text_promo_popover) do
click_element(:close_button)
end
end
end
end
end
end
|