Skip to content

Commit

Permalink
Merge Bento and Bootstrap feature specs for patchinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcoux committed Sep 5, 2019
1 parent 0e4be41 commit 8a06bcf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/api/spec/bootstrap/features/webui/patchinfo_spec.rb

This file was deleted.

23 changes: 23 additions & 0 deletions src/api/spec/features/webui/patchinfo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,27 @@
expect(page).to have_text('Successfully edited patchinfo')
end
end

feature 'delete Patchinfo' do
let(:patchinfo_package) do
Patchinfo.new.create_patchinfo(user.home_project_name, nil) unless user.home_project.packages.where(name: 'patchinfo').exists?
Package.get_by_project_and_name(user.home_project_name, 'patchinfo', use_source: false)
end

before do
login(user)
patchinfo_package
end

scenario 'delete' do
visit patchinfo_show_path(project: project, package: 'patchinfo')
expect(page).to have_link('Delete patchinfo')
click_link('Delete patchinfo')
within('#delete-patchinfo-modal') do
expect(page).to have_text('Do you really want')
click_button('Delete')
end
expect(page).to have_text('Patchinfo was successfully removed.')
end
end
end

0 comments on commit 8a06bcf

Please sign in to comment.