mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 03:18:54 +08:00
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.
23 lines
586 B
Ruby
Vendored
23 lines
586 B
Ruby
Vendored
# 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
|