mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
4c1c25027d
This commit continues work laid out by ffec8163b0
for the admin config page for the /about page. The last commit set up the user interface, and this one sets up all the wiring needed to make the input fields and save buttons actually work.
Internal topic: t/128544.
24 lines
586 B
Ruby
24 lines
586 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Pages
|
|
class AdminAboutConfigArea < PageObjects::Pages::Base
|
|
def visit
|
|
page.visit("/admin/config/about")
|
|
end
|
|
|
|
def general_settings_section
|
|
PageObjects::Components::AdminAboutConfigAreaGeneralSettingsCard.new
|
|
end
|
|
|
|
def contact_information_section
|
|
PageObjects::Components::AdminAboutConfigAreaContactInformationCard.new
|
|
end
|
|
|
|
def your_organization_section
|
|
PageObjects::Components::AdminAboutConfigAreaYourOrganizationCard.new
|
|
end
|
|
end
|
|
end
|
|
end
|