mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 21:03:57 +08:00
12 lines
256 B
Ruby
12 lines
256 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Pages
|
||
|
class AdminFlags < PageObjects::Pages::Base
|
||
|
def toggle(key)
|
||
|
PageObjects::Components::DToggleSwitch.new(".admin-flag-item__toggle.#{key}").toggle
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|