mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
0b87e7543f
Rolling out frozen string literals further by freezing all string literals in core specs.
24 lines
474 B
Ruby
24 lines
474 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "edit_field"
|
|
|
|
class SpentTimeEditField < EditField
|
|
def time_log_icon_visible(visible)
|
|
if visible
|
|
expect(page).to have_css("#{@selector} #{display_selector} #{icon}")
|
|
else
|
|
expect(page).to have_no_css("#{@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
|