Commit 1b8945a77460ffa53e0d02ee45e71a35a0dd12ad
Committed by
Paulo Meireles
1 parent
6df08cce
Exists in
master
and in
29 other branches
[Mezuro] Creating project feature.
Showing
2 changed files
with
13 additions
and
5 deletions
Show diff stats
features/step_definitions/mezuro_steps.rb
... | ... | @@ -33,6 +33,14 @@ Then /^I should see "([^\"]*)" inside an alert$/ do |message| |
33 | 33 | selenium.chooseOkOnNextConfirmation(); |
34 | 34 | end |
35 | 35 | |
36 | +Then /^I should see "([^"]*)" in the "([^"]*)" input$/ do |content, labeltext| | |
37 | + find_field("#{labeltext}").value.should == content | |
38 | +end | |
39 | + | |
40 | +Then /^I should see "([^"]*)" in the "([^"]*)" button$/ do |content, button_class| | |
41 | + find_button("#{button_class}").value.should == content | |
42 | +end | |
43 | + | |
36 | 44 | When /^I have a Mezuro project with the following data$/ do |fields| |
37 | 45 | item = {} |
38 | 46 | fields.rows_hash.each do |name, value| | ... | ... |
plugins/mezuro/features/project.feature
... | ... | @@ -30,17 +30,17 @@ Feature: Project |
30 | 30 | |
31 | 31 | @selenium |
32 | 32 | Scenario: I edit a Mezuro project |
33 | - When I have a Mezuro project with the following data | |
33 | + Given I have a Mezuro project with the following data | |
34 | 34 | | name | Sample Project | |
35 | 35 | | description | Sample Description | |
36 | 36 | | community | mycommunity | |
37 | 37 | And I am on article "Sample Project" |
38 | 38 | And I should be on /mycommunity/sample-project |
39 | - Then I should see "Sample Project" | |
40 | - And I should see "Sample Description" | |
41 | - And I should see "Add Repository" | |
42 | 39 | When I follow "Edit" |
43 | - # Not complete | |
40 | + Then I should see "Sample Project" in the "article_name" input | |
41 | + And I should see "Sample Description" in the "article_description" input | |
42 | + And I should see "Save" button | |
43 | + | |
44 | 44 | |
45 | 45 | # @selenium |
46 | 46 | # Scenario: I delete a Mezuro project that belongs to me | ... | ... |