Last active
May 3, 2016 13:07
-
-
Save hogihung/3eb620a2b46269d35d2ec656697077a2 to your computer and use it in GitHub Desktop.
Cucumber Scenario Outline Example
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
And I successfully change the following the configuration values, one at a time: | |
| id | input | | |
| activity-requirement | 80 | | |
Then I see config has the following input values | |
| id | input | | |
| activity-requirement | 80 | | |
STEP DEFS: | |
When /^I successfully change the following the configuration values, one at a time:$/ do |table| | |
table.hashes.each do |line| | |
attempt_auction_config_save_complex("upper_config", line[:id], line[:input], false) | |
end | |
end | |
Then /^I see config has the following input values$/ do |table| | |
within 'table.upper_config' do | |
table.hashes.each do |line| | |
within '#' + line[:id] do | |
expect(page).to have_field("input-" + line[:id], with: line[:input]) | |
end | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment