Skip to content

Commit

Permalink
[dist] Simplify interconnect smoketest
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Mar 23, 2017
1 parent 9718936 commit 1cd15c7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions dist/t/spec/features/0020_interconnect_spec.rb
@@ -1,15 +1,19 @@
require "spec_helper"

RSpec.describe "Create Interconnect as admin and build package" do
RSpec.describe "Interconnect" do
before(:context) do
login
end

it "should be able to login as user 'Admin'" do
obs_login("Admin","opensuse")
after(:context) do
logout
end

it "should be able to add Opensuse Interconnect as Admin" do
it "should be able to create link" do
visit "/configuration/interconnect"
click_button('openSUSE')
# Don't wait for the javascript text replacement...
page.execute_script("$('input[type=\"submit\"]').prop('disabled', false)")
click_button('Save changes')
expect(page).to have_content("Project 'openSUSE.org' was created successfully")
end

end

0 comments on commit 1cd15c7

Please sign in to comment.