Convert admin/reset controller spec to system spec (#31643)

This commit is contained in:
Matt Jankowski 2024-08-29 04:38:17 -04:00 committed by GitHub
parent 5d725b2c12
commit b9269c8d38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 46 additions and 36 deletions

View file

@ -52,7 +52,7 @@
- if can?(:reset_password, account.user)
%tr
%td
= table_link_to 'key', t('admin.accounts.reset_password'), admin_account_reset_path(account.id), method: :create, data: { confirm: t('admin.accounts.are_you_sure') }
= table_link_to 'key', t('admin.accounts.reset_password'), admin_account_reset_path(account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') }
%tr
%th= t('simple_form.labels.defaults.locale')
%td= standard_locale_name(account.user_locale)