bug(auth.error_message): should be i18n
This commit is contained in:
parent
261932b56f
commit
672b341279
1 changed files with 23 additions and 0 deletions
23
spec/system/users/sign_in_spec.rb
Normal file
23
spec/system/users/sign_in_spec.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
describe 'Sign in', js: true do
|
||||
let(:user) { create(:user) }
|
||||
|
||||
scenario 'when a user is logged in english' do
|
||||
visit root_path
|
||||
|
||||
within(".fr-header__tools") do
|
||||
find('.fr-translate__btn').click
|
||||
end
|
||||
within("#translate") do
|
||||
click_on("EN - English")
|
||||
end
|
||||
expect(page).to have_content("Sign in")
|
||||
within(".fr-header__tools") do
|
||||
click_on("Sign in")
|
||||
end
|
||||
expect(page).to have_content("With FranceConnect")
|
||||
fill_in(:user_email, with: user.email)
|
||||
fill_in(:user_password, with: 'wrong password')
|
||||
click_on("Sign in")
|
||||
expect(page).to have_content("Invalid Email or password.")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue