diff options
Diffstat (limited to 'qa/qa/page/layout/flash.rb')
-rw-r--r-- | qa/qa/page/layout/flash.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qa/qa/page/layout/flash.rb b/qa/qa/page/layout/flash.rb new file mode 100644 index 00000000000..6bd3d6ab76b --- /dev/null +++ b/qa/qa/page/layout/flash.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module QA + module Page + module Layout + module Flash + extend QA::Page::PageConcern + + def self.included(base) + super + + base.view 'app/views/layouts/_flash.html.haml' do + element :flash_container + end + end + + def has_notice?(message) + within_element(:flash_container) do + has_text?(message) + end + end + end + end + end +end |