-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
59 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
gem 'cucumber' | ||
gem 'aruba' |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
Feature: Test the repository manager | ||
|
||
Scenario: Adding a new repository | ||
Given the dialog heading should be "Configured Software Repositories" | ||
And I click button "Add" | ||
Then the dialog heading should be "Add On Product" | ||
|
||
When I click button "Next" | ||
Then the dialog heading should be "Repository URL" | ||
|
||
When I enter "Tumbleweed OSS" into input field "Repository Name" | ||
And I enter "http://download.opensuse.org/tumbleweed/repo/oss/" into input field "URL" | ||
And I click button "Next" | ||
Then the dialog heading should be "Tumbleweed OSS License Agreement" | ||
|
||
When I click button "Next" | ||
Then the dialog heading should be "Configured Software Repositories" | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
def set_port(port) | ||
# 14155 is currently an unassigned port | ||
@port = port || ENV["YUI_HTTP_PORT"] || 14155 | ||
ENV["YUI_HTTP_PORT"] = @port | ||
end | ||
|
||
Given("I start the \"{string}\" application(| on port (\d+))") do |string, _port_str, port| | ||
set_port(port) | ||
|
||
pending | ||
end | ||
|
||
Given("I use an running libyui application (| on port (\d+))") do | _port_str, port| | ||
set_port(port) | ||
|
||
pending | ||
end | ||
|
||
# When("I enter {string} into input field {string}") do |string, string2| | ||
# pending # Write code here that turns the phrase above into concrete actions | ||
# end |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
When("I click button \"{string}\"") do |string| | ||
pending # Write code here that turns the phrase above into concrete actions | ||
end | ||
|
||
When("I enter {string} into input field {string}") do |string, string2| | ||
pending # Write code here that turns the phrase above into concrete actions | ||
end |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Given("the dialog heading should be {string}") do |string| | ||
pending # Write code here that turns the phrase above into concrete actions | ||
end | ||
|
||
Then("the dialog heading should be {string}") do |string| | ||
pending # Write code here that turns the phrase above into concrete actions | ||
end | ||
|
Empty file.