A platform for community discussion. Free, open, simple.
# frozen_string_literal: true
module PageObjects
module Pages
class NewAutomation < PageObjects::Pages::Base
def visit
super("/admin/plugins/automation/automation/new")
self
end
def fill_name(name)
find_field("automation-name").fill_in(with: name)
self
end
def select_trigger(trigger)
dropdown = Components::SelectKit.new(".triggerables")
dropdown.select_row_by_value(trigger)
self
end
def create
find(".create-automation").click
self
end
def has_error?(message)
find(".form-errors").has_text?(message)
end
end
end
end