Fix Rubocop offenses
This commit is contained in:
@ -29,7 +29,7 @@ RSpec.describe 'Editor', :js do
|
||||
visit(sign_in_path)
|
||||
fill_in('email', with: contributor.email)
|
||||
fill_in('password', with: attributes_for(:teacher)[:password])
|
||||
click_button(I18n.t('sessions.new.link'))
|
||||
click_button(I18n.t('sessions.new.link')) # rubocop:disable Capybara/ClickLinkOrButtonStyle
|
||||
allow_any_instance_of(LtiHelper).to receive(:lti_outcome_service?).and_return(true)
|
||||
visit(implement_exercise_path(exercise))
|
||||
end
|
||||
@ -56,7 +56,7 @@ RSpec.describe 'Editor', :js do
|
||||
|
||||
context 'when selecting a file' do
|
||||
before do
|
||||
within('#files') { click_link(file.name_with_extension) }
|
||||
within('#files') { click_on(file.name_with_extension) }
|
||||
end
|
||||
|
||||
context 'when selecting a binary file' do
|
||||
@ -106,7 +106,7 @@ RSpec.describe 'Editor', :js do
|
||||
it 'disables the score button' do
|
||||
visit(implement_exercise_path(exercise_without_test))
|
||||
expect(page).to have_content(exercise_without_test.title)
|
||||
expect(page).not_to have_content(I18n.t('exercises.editor.score'))
|
||||
expect(page).to have_no_content(I18n.t('exercises.editor.score'))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user