Commit fb58018a authored by Giorgenes Gelatti's avatar Giorgenes Gelatti

Move package qa feature specs to core

parent 224f6cb1
...@@ -80,19 +80,20 @@ module QA ...@@ -80,19 +80,20 @@ module QA
project.visit! project.visit!
Page::Project::Menu.perform(&:click_packages_link) Page::Project::Menu.perform(&:click_packages_link)
EE::Page::Project::Packages::Index.perform do |index|
Page::Project::Packages::Index.perform do |index|
expect(index).to have_package(package_name) expect(index).to have_package(package_name)
index.click_package(package_name) index.click_package(package_name)
end end
EE::Page::Project::Packages::Show.perform do |show| Page::Project::Packages::Show.perform do |show|
expect(show).to have_package_info(package_name, "1.0") expect(show).to have_package_info(package_name, "1.0")
show.click_delete show.click_delete
end end
EE::Page::Project::Packages::Index.perform do |index| Page::Project::Packages::Index.perform do |index|
expect(index).to have_content("Package was removed") expect(index).to have_content("Package was removed")
expect(index).to have_no_package(package_name) expect(index).to have_no_package(package_name)
end end
......
...@@ -53,19 +53,20 @@ module QA ...@@ -53,19 +53,20 @@ module QA
project.visit! project.visit!
Page::Project::Menu.perform(&:click_packages_link) Page::Project::Menu.perform(&:click_packages_link)
EE::Page::Project::Packages::Index.perform do |index|
Page::Project::Packages::Index.perform do |index|
expect(index).to have_package(package_name) expect(index).to have_package(package_name)
index.click_package(package_name) index.click_package(package_name)
end end
EE::Page::Project::Packages::Show.perform do |show| Page::Project::Packages::Show.perform do |show|
expect(show).to have_package_info(package_name, "1.0.0") expect(show).to have_package_info(package_name, "1.0.0")
show.click_delete show.click_delete
end end
EE::Page::Project::Packages::Index.perform do |index| Page::Project::Packages::Index.perform do |index|
expect(index).to have_content("Package was removed") expect(index).to have_content("Package was removed")
expect(index).to have_no_package(package_name) expect(index).to have_no_package(package_name)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment