mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:56:36 +08:00
20 lines
396 B
Ruby
20 lines
396 B
Ruby
|
# 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
|