Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

474 B
Raw Blame
# 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