mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 12:54:56 +00:00
* Simplify config nav link generation to always inject the Settings tab * Auto-redirect to the first non-settings config link (if there is one) when the user lands on /admin/plugins/:plugin_id * Add `extras` to admin plugin serializer so plugins can add more data on first load * Add PikadayCalendar page object for system specs, extracted from the CalendarDateTimePicker to make it more generic.
23 lines
518 B
Ruby
23 lines
518 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Components
|
|
class CalendarDateTimePicker < PageObjects::Components::Base
|
|
delegate :select_day, :select_year, to: :@pikaday_calendar
|
|
|
|
def initialize(context)
|
|
@context = context
|
|
@pikaday_calendar = PageObjects::Components::PikadayCalendar.new(context)
|
|
end
|
|
|
|
def component
|
|
find(@context)
|
|
end
|
|
|
|
def fill_time(time)
|
|
component.find(".time-picker").fill_in(with: time)
|
|
end
|
|
end
|
|
end
|
|
end
|