mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 07:23:40 +08:00
44 lines
988 B
Ruby
44 lines
988 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Pages
|
||
|
class AdminCustomizeThemes < PageObjects::Pages::Base
|
||
|
def has_inactive_themes?
|
||
|
has_css?(".inactive-indicator")
|
||
|
end
|
||
|
|
||
|
def has_no_inactive_themes?
|
||
|
has_no_css?(".inactive-indicator")
|
||
|
end
|
||
|
|
||
|
def has_select_inactive_mode_button?
|
||
|
has_css?(".select-inactive-mode")
|
||
|
end
|
||
|
|
||
|
def click_select_inactive_mode
|
||
|
find(".select-inactive-mode").click
|
||
|
end
|
||
|
|
||
|
def cancel_select_inactive_mode
|
||
|
find(".cancel-select-inactive-mode").click
|
||
|
end
|
||
|
|
||
|
def has_inactive_themes_selected?(count:)
|
||
|
has_css?(".inactive-theme input:checked", count: count)
|
||
|
end
|
||
|
|
||
|
def toggle_all_inactive
|
||
|
find(".toggle-all-inactive").click
|
||
|
end
|
||
|
|
||
|
def has_disabled_delete_theme_button?
|
||
|
find_button("Delete", disabled: true)
|
||
|
end
|
||
|
|
||
|
def click_delete_themes_button
|
||
|
find(".btn-delete").click
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|