|
|
|
@ -23,7 +23,7 @@ RSpec.describe 'Sign In' do
|
|
|
|
fill_in 'Password', with: 'wrong_password'
|
|
|
|
fill_in 'Password', with: 'wrong_password'
|
|
|
|
click_button 'Sign In'
|
|
|
|
click_button 'Sign In'
|
|
|
|
|
|
|
|
|
|
|
|
expect(page).to have_content('Invalid Email or password')
|
|
|
|
expect(page).to have_content('Invalid email or password')
|
|
|
|
expect(page).not_to have_content('Document Templates')
|
|
|
|
expect(page).not_to have_content('Document Templates')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@ -51,7 +51,7 @@ RSpec.describe 'Sign In' do
|
|
|
|
fill_in 'Two-Factor Code from Authenticator App', with: '123456'
|
|
|
|
fill_in 'Two-Factor Code from Authenticator App', with: '123456'
|
|
|
|
click_button 'Sign In'
|
|
|
|
click_button 'Sign In'
|
|
|
|
|
|
|
|
|
|
|
|
expect(page).to have_content('Invalid Email or password')
|
|
|
|
expect(page).to have_content('Invalid email or password')
|
|
|
|
expect(page).not_to have_content('Document Templates')
|
|
|
|
expect(page).not_to have_content('Document Templates')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|