Fix Capybara/ClickLinkOrButtonStyle
cop in spec/features (#28576)
This commit is contained in:
parent
06374d07c3
commit
f06c1f1552
17 changed files with 49 additions and 49 deletions
|
@ -19,7 +19,7 @@ describe 'Log in' do
|
|||
it 'A valid email and password user is able to log in' do
|
||||
fill_in 'user_email', with: email
|
||||
fill_in 'user_password', with: password
|
||||
click_button I18n.t('auth.login')
|
||||
click_on I18n.t('auth.login')
|
||||
|
||||
expect(subject).to have_css('div.app-holder')
|
||||
end
|
||||
|
@ -27,7 +27,7 @@ describe 'Log in' do
|
|||
it 'A invalid email and password user is not able to log in' do
|
||||
fill_in 'user_email', with: 'invalid_email'
|
||||
fill_in 'user_password', with: 'invalid_password'
|
||||
click_button I18n.t('auth.login')
|
||||
click_on I18n.t('auth.login')
|
||||
|
||||
expect(subject).to have_css('.flash-message', text: failure_message('invalid'))
|
||||
end
|
||||
|
@ -38,7 +38,7 @@ describe 'Log in' do
|
|||
it 'A unconfirmed user is able to log in' do
|
||||
fill_in 'user_email', with: email
|
||||
fill_in 'user_password', with: password
|
||||
click_button I18n.t('auth.login')
|
||||
click_on I18n.t('auth.login')
|
||||
|
||||
expect(subject).to have_css('div.admin-wrapper')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue