From e76a3624f00bc5e162507a33bbc333c5bb0391d8 Mon Sep 17 00:00:00 2001 From: Daniel Cunha Date: Wed, 12 Dec 2012 23:36:02 -0300 Subject: [PATCH] gallery_navigation.feature --- features/gallery_navigation.feature | 12 ++++++------ features/step_definitions/noosfero_steps.rb | 8 -------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/features/gallery_navigation.feature b/features/gallery_navigation.feature index 63e3ee9..b61264c 100644 --- a/features/gallery_navigation.feature +++ b/features/gallery_navigation.feature @@ -23,7 +23,7 @@ Feature: gallery_navigation @selenium Scenario: view next image when follow next link Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true - When I follow "Next »" and wait + When I follow "Next »" Then I should see "rails.png" within ".title" Scenario: not link to next when in last image @@ -38,7 +38,7 @@ Feature: gallery_navigation @selenium Scenario: view previous image when follow previous link Given I am on /marciopunk/my-gallery/rails.png?view=true - When I follow "« Previous" and wait + When I follow "« Previous" Then I should see "other-pic.jpg" within ".title" Scenario: not link to previous when in first image @@ -71,8 +71,8 @@ Feature: gallery_navigation @selenium Scenario: image title in window title Given I am logged in as "marciopunk" - When I visit "/marciopunk/other-gallery/rails.png?view=true" and wait - And I follow "Edit" and wait + When I go to /marciopunk/other-gallery/rails.png?view=true + And I follow "Edit" And I fill in "Title" with "Rails is cool" - And I press "Save" and wait - Then The page title should contain "Rails is cool" + And I press "Save" + Then I should see "Rails is cool" within "title" diff --git a/features/step_definitions/noosfero_steps.rb b/features/step_definitions/noosfero_steps.rb index 3d4a553..86b4a19 100644 --- a/features/step_definitions/noosfero_steps.rb +++ b/features/step_definitions/noosfero_steps.rb @@ -414,14 +414,6 @@ Given /^enterprise "([^\"]*)" is disabled$/ do |enterprise_name| enterprise.save end -Then /^The page title should contain "(.*)"$/ do |text| - if response.class.to_s == 'Webrat::SeleniumResponse' - response.selenium.text('css=title').should include(text) - else - response.should have_selector("title:contains('#{text}')") - end -end - Given /^the mailbox is empty$/ do ActionMailer::Base.deliveries = [] end -- libgit2 0.21.2