OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/spec/support/edit_fields/spent_time_edit_field.rb

22 lines
455 B

require_relative './edit_field'
class SpentTimeEditField < EditField
def time_log_icon_visible(visible)
if visible
expect(page).to have_selector("#{@selector} #{display_selector} #{icon}")
else
expect(page).to have_no_selector("#{@selector} #{display_selector} #{icon}")
end
end
def open_time_log_modal
page.find("#{@selector} #{display_selector} #{icon}").click
end
private
def icon
'.icon-time'
end
end