discourse/spec/system/page_objects/components/dialog.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
396 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module PageObjects
module Components
class Dialog < PageObjects::Components::Base
def has_content?(content)
find(".dialog-container").has_content?(content)
end
def click_yes
find(".dialog-footer .btn-primary").click
end
def click_no
find(".dialog-footer .btn-default").click
end
end
end
end