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,7 +23,7 @@ Feature: gallery_navigation | ||
| 23 | @selenium | 23 | @selenium |
| 24 | Scenario: view next image when follow next link | 24 | Scenario: view next image when follow next link |
| 25 | Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true | 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 | Then I should see "rails.png" within ".title" | 27 | Then I should see "rails.png" within ".title" |
| 28 | 28 | ||
| 29 | Scenario: not link to next when in last image | 29 | Scenario: not link to next when in last image |
| @@ -38,7 +38,7 @@ Feature: gallery_navigation | @@ -38,7 +38,7 @@ Feature: gallery_navigation | ||
| 38 | @selenium | 38 | @selenium |
| 39 | Scenario: view previous image when follow previous link | 39 | Scenario: view previous image when follow previous link |
| 40 | Given I am on /marciopunk/my-gallery/rails.png?view=true | 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 | Then I should see "other-pic.jpg" within ".title" | 42 | Then I should see "other-pic.jpg" within ".title" |
| 43 | 43 | ||
| 44 | Scenario: not link to previous when in first image | 44 | Scenario: not link to previous when in first image |
| @@ -71,8 +71,8 @@ Feature: gallery_navigation | @@ -71,8 +71,8 @@ Feature: gallery_navigation | ||
| 71 | @selenium | 71 | @selenium |
| 72 | Scenario: image title in window title | 72 | Scenario: image title in window title |
| 73 | Given I am logged in as "marciopunk" | 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 | And I fill in "Title" with "Rails is cool" | 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,14 +414,6 @@ Given /^enterprise "([^\"]*)" is disabled$/ do |enterprise_name| | ||
| 414 | enterprise.save | 414 | enterprise.save |
| 415 | end | 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 | Given /^the mailbox is empty$/ do | 417 | Given /^the mailbox is empty$/ do |
| 426 | ActionMailer::Base.deliveries = [] | 418 | ActionMailer::Base.deliveries = [] |
| 427 | end | 419 | end |