diff --git a/app/views/users/shared/_links.html.erb b/app/views/users/shared/_links.html.erb index 7acc0d13e..e6bee5ddc 100644 --- a/app/views/users/shared/_links.html.erb +++ b/app/views/users/shared/_links.html.erb @@ -6,7 +6,7 @@ <%= link_to "Sign up", new_registration_path(resource_name) %>
<% end -%> -<%= link_to "Connect with France Connect", '/france_connect' %>
+<%= link_to "Connect with France Connect", '/france_connect', id: 'france_connect' %>
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> <%= link_to "Forgot your password?", new_password_path(resource_name) %>
diff --git a/spec/features/france_connect/france_connect_spec.rb b/spec/features/france_connect/france_connect_spec.rb new file mode 100644 index 000000000..34fb7e94f --- /dev/null +++ b/spec/features/france_connect/france_connect_spec.rb @@ -0,0 +1,16 @@ +require 'spec_helper' + +feature 'France Connect Connexion' do + + context 'when user is on login page' do + + before do + visit new_user_session_path + end + + scenario 'link to France Connect is present' do + expect(page).to have_css('a#france_connect') + end + + end +end \ No newline at end of file