demarches-normaliennes/spec/views/users/sessions/new.html.haml_spec.rb
Martin a4d6692bc6 accessibilite(pages-authentification): evolutions des pages de connexion/creation de compte pour respecter le DSFR et supporter une meilleure accessibilite
Update app/components/dsfr/input_component/input_component.html.haml

Co-authored-by: Colin Darie <colin@darie.eu>
2023-01-03 16:26:05 +01:00

19 lines
507 B
Ruby

describe 'users/sessions/new.html.haml', type: :view do
let(:dossier) { create :dossier }
before(:each) do
allow(view).to receive(:devise_mapping).and_return(Devise.mappings[:user])
allow(view).to receive(:resource).and_return(User.new)
end
before do
assign(:user, User.new)
render
end
it 'renders' do
expect(rendered).to have_field('Adresse éléctronique')
expect(rendered).to have_field('Mot de passe')
expect(rendered).to have_button('Se connecter')
end
end