mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: Avoid a hacky workaround in d-toggle-switch specs (#29376)
This commit is contained in:
@ -37,7 +37,7 @@ describe "Admin Plugins List", type: :system, js: true do
|
||||
toggle_switch =
|
||||
PageObjects::Components::DToggleSwitch.new(
|
||||
admin_plugins_list_page.plugin_row_selector("automation") +
|
||||
" .admin-plugins-list__enabled .d-toggle-switch",
|
||||
" .admin-plugins-list__enabled .d-toggle-switch__checkbox",
|
||||
)
|
||||
toggle_switch.toggle
|
||||
expect(toggle_switch).to be_unchecked
|
||||
|
Reference in New Issue
Block a user