diff --git a/app/javascript/new_design/fc-fusion.js b/app/javascript/new_design/fc-fusion.js index 5d912c5d1..3ef0fce4e 100644 --- a/app/javascript/new_design/fc-fusion.js +++ b/app/javascript/new_design/fc-fusion.js @@ -3,11 +3,11 @@ import { show, hide } from '@utils'; export function showFusion() { show(document.querySelector('.fusion')); hide(document.querySelector('.new-account')); - hide(document.querySelector('.new-account-password-confirmation')); + hide(document.querySelector('#new-account-password-confirmation')); } export function showNewAccount() { hide(document.querySelector('.fusion')); show(document.querySelector('.new-account')); - hide(document.querySelector('.new-account-password-confirmation')); + hide(document.querySelector('#new-account-password-confirmation')); } diff --git a/app/views/france_connect/particulier/merge.html.haml b/app/views/france_connect/particulier/merge.html.haml index 2fa14bab6..aeb4ec2bb 100644 --- a/app/views/france_connect/particulier/merge.html.haml +++ b/app/views/france_connect/particulier/merge.html.haml @@ -43,4 +43,4 @@ = submit_tag t('.button_use_this_email'), class: 'button primary' - .new-account-password-confirmation.hidden + #new-account-password-confirmation.hidden diff --git a/app/views/france_connect/particulier/merge_with_new_account.turbo_stream.haml b/app/views/france_connect/particulier/merge_with_new_account.turbo_stream.haml index 9340f6927..7d14ef01a 100644 --- a/app/views/france_connect/particulier/merge_with_new_account.turbo_stream.haml +++ b/app/views/france_connect/particulier/merge_with_new_account.turbo_stream.haml @@ -1,4 +1,4 @@ -= turbo_stream.update '.new-account-password-confirmation', partial: 'password_confirmation', locals: { email: @email, merge_token: @merge_token } += turbo_stream.update 'new-account-password-confirmation', partial: 'password_confirmation', locals: { email: @email, merge_token: @merge_token } = turbo_stream.hide_all '.fusion' = turbo_stream.hide_all '.new-account' -= turbo_stream.show_all '.new-account-password-confirmation' += turbo_stream.show 'new-account-password-confirmation' diff --git a/spec/system/france_connect/france_connect_particulier_spec.rb b/spec/system/france_connect/france_connect_particulier_spec.rb index 33ad0aae1..f6cad87ee 100644 --- a/spec/system/france_connect/france_connect_particulier_spec.rb +++ b/spec/system/france_connect/france_connect_particulier_spec.rb @@ -83,7 +83,7 @@ describe 'France Connect Particulier Connexion' do expect(page).to have_css('#password-for-another-account', visible: true) - within '.new-account-password-confirmation' do + within '#new-account-password-confirmation' do fill_in 'password', with: 'my-s3cure-p4ssword' click_on 'Fusionner les comptes' end