Skip to content

Commit

Permalink
Fix some rubocop issues manually
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwiedemann committed Sep 25, 2023
1 parent 9d13341 commit 8424b41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/api/spec/features/webui/projects_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
login user
visit project_show_path(project: project)

click_on('Edit')
click_link('Edit')
expect(page).to have_text("Edit Project #{project}")

fill_in 'project_title', with: 'My Title hopefully got changed'
Expand All @@ -47,7 +47,7 @@
login user
visit project_show_path(project: project)

click_on('Edit')
click_link('Edit')
expect(page).to have_text("Edit Project #{project}")

fill_in 'project_title', with: 'My Title hopefully got changed'
Expand Down
4 changes: 2 additions & 2 deletions src/api/spec/features/webui/requests_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
it 'does not set stage information for submit request' do
login submitter
visit request_show_path(bs_request)
click_on('Add Reviewer')
click_button('Add Reviewer')
within '#add-reviewer-modal' do
select 'Project Maintainers', from: 'review_type'
fill_in 'Project', with: staging_project.name
Expand All @@ -426,7 +426,7 @@
it 'shows staging request information' do
login staging_user
visit request_show_path(staging_request)
click_on('Add Reviewer')
click_button('Add Reviewer')
within '#add-reviewer-modal' do
select 'Project Maintainers', from: 'review_type'
fill_in 'Project', with: staging_project.name
Expand Down
8 changes: 4 additions & 4 deletions src/api/spec/features/webui/watchlists_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
login user

visit project_show_path(project: project_a)
click_on('Watchlist')
click_link('Watchlist')
expect(page).to have_content('Projects you are watching')
expect(page).to have_content('There are no projects in the watchlist yet')
expect(page).to have_content('There are no packages in the watchlist yet')
Expand All @@ -27,7 +27,7 @@

# Add another project
visit project_show_path(project: project_b)
click_on('Watchlist')
click_link('Watchlist')
click_link('Watch this project')
within('.watchlist-collapse') do
expect(page).to have_content('Remove this project from Watchlist')
Expand All @@ -37,7 +37,7 @@

# Add package
visit package_show_path(project: project_a.name, package: package.name)
click_on('Watchlist')
click_link('Watchlist')
click_link('Watch this package')
within('.watchlist-collapse') do
expect(page).to have_content('Remove this package from Watchlist')
Expand All @@ -48,7 +48,7 @@

# Add request
visit request_show_path(number: request.number)
click_on('Watchlist')
click_link('Watchlist')
click_link('Watch this request')
within('.watchlist-collapse') do
expect(page).to have_content('Remove this request from Watchlist')
Expand Down

0 comments on commit 8424b41

Please sign in to comment.