Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dist] Simplify interconnect smoketest
- Loading branch information
1 parent
9718936
commit 1cd15c7
Showing
1 changed file
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |