Files
Jan Sandbrink 0b87e7543f Freeze string literals in specs
Rolling out frozen string literals further by freezing all
string literals in core specs.
2025-05-05 09:29:55 +02:00

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