Fix Rubocop offenses

This commit is contained in:
Sebastian Serth
2024-01-09 00:45:16 +01:00
parent 2152339d3d
commit a230618724
5 changed files with 26 additions and 26 deletions

View File

@ -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