add spec for features France connect connection
This commit is contained in:
parent
a4661c932f
commit
8445944b76
2 changed files with 17 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
|
||||
<% end -%>
|
||||
|
||||
<%= link_to "Connect with France Connect", '/france_connect' %><br />
|
||||
<%= link_to "Connect with France Connect", '/france_connect', id: 'france_connect' %><br />
|
||||
|
||||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
||||
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
||||
|
|
16
spec/features/france_connect/france_connect_spec.rb
Normal file
16
spec/features/france_connect/france_connect_spec.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue