Skip to content

Commit

Permalink
ER-1299 remove close account button (#1250)
Browse files Browse the repository at this point in the history
* Remove button to start account closure journey
* Add new closure content

---------

Co-authored-by: Katherine Martin <[email protected]>
  • Loading branch information
peterdavidhamilton and martikat authored Jul 4, 2024
1 parent ae783cf commit ace1c86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion app/views/user/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@
- row.with_action(text: 'Change email preferences', href: edit_training_emails_user_path, html_attributes: { id: :edit_training_emails_user })

= m('my_account.closing.information')
= govuk_button_link_to t('my_account.closing.button'), edit_reason_user_close_account_path
3 changes: 1 addition & 2 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,10 @@ en:
password_changed: Password last changed on %{date}
remember_me: Remember me
closing:
button: Request to close account
information: |
## Closing your account
If you do not want to use your Early years child development training account anymore, you can ask us to close your account.
If you do not want to use your Early years child development training account anymore, you can [ask us to close your account](/my-account/close/edit-reason).
You will no longer be able to access the training modules.
Any certificates you have earned will be permanently deleted.
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/seed_snippets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
subject(:locales) { described_class.new.call }

it 'converts all translations' do
expect(locales.count).to be 187
expect(locales.count).to be 186
end

it 'dot separated key -> Page::Resource#name' do
Expand Down
4 changes: 2 additions & 2 deletions spec/system/registered_user/closing_account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
include_context 'with user'

context 'when on my account page' do
it 'has button to close account' do
it 'has link to close account' do
visit '/my-account'
expect(page).to have_link 'Request to close account', href: '/my-account/close/edit-reason'
expect(page).to have_link 'ask us to close your account', href: '/my-account/close/edit-reason'
end
end

Expand Down

0 comments on commit ace1c86

Please sign in to comment.