Commit e76a3624f00bc5e162507a33bbc333c5bb0391d8
1 parent
ceabbcd0
Exists in
master
and in
28 other branches
gallery_navigation.feature
Showing
2 changed files
with
6 additions
and
14 deletions
Show diff stats
features/gallery_navigation.feature
| ... | ... | @@ -23,7 +23,7 @@ Feature: gallery_navigation |
| 23 | 23 | @selenium |
| 24 | 24 | Scenario: view next image when follow next link |
| 25 | 25 | Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true |
| 26 | - When I follow "Next »" and wait | |
| 26 | + When I follow "Next »" | |
| 27 | 27 | Then I should see "rails.png" within ".title" |
| 28 | 28 | |
| 29 | 29 | Scenario: not link to next when in last image |
| ... | ... | @@ -38,7 +38,7 @@ Feature: gallery_navigation |
| 38 | 38 | @selenium |
| 39 | 39 | Scenario: view previous image when follow previous link |
| 40 | 40 | Given I am on /marciopunk/my-gallery/rails.png?view=true |
| 41 | - When I follow "« Previous" and wait | |
| 41 | + When I follow "« Previous" | |
| 42 | 42 | Then I should see "other-pic.jpg" within ".title" |
| 43 | 43 | |
| 44 | 44 | Scenario: not link to previous when in first image |
| ... | ... | @@ -71,8 +71,8 @@ Feature: gallery_navigation |
| 71 | 71 | @selenium |
| 72 | 72 | Scenario: image title in window title |
| 73 | 73 | Given I am logged in as "marciopunk" |
| 74 | - When I visit "/marciopunk/other-gallery/rails.png?view=true" and wait | |
| 75 | - And I follow "Edit" and wait | |
| 74 | + When I go to /marciopunk/other-gallery/rails.png?view=true | |
| 75 | + And I follow "Edit" | |
| 76 | 76 | And I fill in "Title" with "Rails is cool" |
| 77 | - And I press "Save" and wait | |
| 78 | - Then The page title should contain "Rails is cool" | |
| 77 | + And I press "Save" | |
| 78 | + Then I should see "Rails is cool" within "title" | ... | ... |
features/step_definitions/noosfero_steps.rb
| ... | ... | @@ -414,14 +414,6 @@ Given /^enterprise "([^\"]*)" is disabled$/ do |enterprise_name| |
| 414 | 414 | enterprise.save |
| 415 | 415 | end |
| 416 | 416 | |
| 417 | -Then /^The page title should contain "(.*)"$/ do |text| | |
| 418 | - if response.class.to_s == 'Webrat::SeleniumResponse' | |
| 419 | - response.selenium.text('css=title').should include(text) | |
| 420 | - else | |
| 421 | - response.should have_selector("title:contains('#{text}')") | |
| 422 | - end | |
| 423 | -end | |
| 424 | - | |
| 425 | 417 | Given /^the mailbox is empty$/ do |
| 426 | 418 | ActionMailer::Base.deliveries = [] |
| 427 | 419 | end | ... | ... |