Commit cb8a5d9d24962835a7f080b2a6fe9b825bacd2aa
1 parent
084016da
Exists in
master
and in
22 other branches
events.feature
Showing
2 changed files
with
12 additions
and
4 deletions
Show diff stats
features/events.feature
@@ -184,7 +184,7 @@ Feature: events | @@ -184,7 +184,7 @@ Feature: events | ||
184 | And "josesilva" is a member of "Sample Community" | 184 | And "josesilva" is a member of "Sample Community" |
185 | And I go to josesilva's control panel | 185 | And I go to josesilva's control panel |
186 | And I follow "Manage Content" | 186 | And I follow "Manage Content" |
187 | - And I follow "Another Conference" and wait | 187 | + And I follow "Another Conference" |
188 | And I follow "Spread" | 188 | And I follow "Spread" |
189 | And I check "Sample Community" | 189 | And I check "Sample Community" |
190 | And I press "Spread this" | 190 | And I press "Spread this" |
@@ -213,15 +213,15 @@ Feature: events | @@ -213,15 +213,15 @@ Feature: events | ||
213 | And I am on josesilva's Event creation | 213 | And I am on josesilva's Event creation |
214 | Then I should see "Lead" | 214 | Then I should see "Lead" |
215 | 215 | ||
216 | - @selenium | 216 | + @selenium @fixme |
217 | Scenario: events lead should be shown on blogs with short format | 217 | Scenario: events lead should be shown on blogs with short format |
218 | Given I am logged in as "josesilva" | 218 | Given I am logged in as "josesilva" |
219 | And I am on josesilva's control panel | 219 | And I am on josesilva's control panel |
220 | - And I follow "Configure blog" and wait | 220 | + And I follow "Configure blog" |
221 | And I select "First paragraph" from "How to display posts:" | 221 | And I select "First paragraph" from "How to display posts:" |
222 | And I press "Save" | 222 | And I press "Save" |
223 | And I follow "New post" | 223 | And I follow "New post" |
224 | - And I follow "A calendar event" and wait | 224 | + And I follow "A calendar event" |
225 | And I fill in "Title" with "Leaded event" | 225 | And I fill in "Title" with "Leaded event" |
226 | And I type "This is the abstract." in TinyMCE field "article_abstract" | 226 | And I type "This is the abstract." in TinyMCE field "article_abstract" |
227 | And I type "This is the real text." in TinyMCE field "article_body" | 227 | And I type "This is the real text." in TinyMCE field "article_body" |
features/step_definitions/custom_web_steps.rb
@@ -4,6 +4,14 @@ Then /^"([^"]*)" should not be visible within "([^"]*)"$/ do |text, selector| | @@ -4,6 +4,14 @@ Then /^"([^"]*)" should not be visible within "([^"]*)"$/ do |text, selector| | ||
4 | end | 4 | end |
5 | end | 5 | end |
6 | 6 | ||
7 | +Then /^I should see "([^"]*)" link$/ do |text| | ||
8 | + page.should have_css('a', :text => text) | ||
9 | +end | ||
10 | + | ||
11 | +Then /^I should not see "([^"]*)" link$/ do |text| | ||
12 | + page.should have_no_css('a', :text => text) | ||
13 | +end | ||
14 | + | ||
7 | When /^I reload and wait for the page$/ do | 15 | When /^I reload and wait for the page$/ do |
8 | raise "Why why need this? Remove!" | 16 | raise "Why why need this? Remove!" |
9 | visit page.driver.browser.current_url | 17 | visit page.driver.browser.current_url |