mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: delete multiple inactive themes/components (#23788)
Ability to select multiple inactive themes or components and delete them all together
This commit is contained in:
committed by
GitHub
parent
60e624e768
commit
e94b553e9a
15
spec/system/page_objects/modals/delete_themes_confirm.rb
Normal file
15
spec/system/page_objects/modals/delete_themes_confirm.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module PageObjects
|
||||
module Modals
|
||||
class DeleteThemesConfirm < PageObjects::Pages::Base
|
||||
def has_theme?(name)
|
||||
has_css?(".modal li", text: name)
|
||||
end
|
||||
|
||||
def confirm
|
||||
find(".modal-footer .btn-primary").click
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user