diff --git a/features/edit_article.feature b/features/edit_article.feature index c5f4f52..f02a8bc 100644 --- a/features/edit_article.feature +++ b/features/edit_article.feature @@ -90,7 +90,7 @@ Feature: edit article And I fill in "Title" with "My Folder" And I choose "article_published_false" And I uncheck "article_show_to_followers" - Then I should see "Fill in the search field to add the exception users to see this content" + Then I should see "Allow only community members entered below to view this content" @selenium Scenario: allowed user should see the content of a folder diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index 39e5179..7f75605 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -39,7 +39,15 @@ end When /^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/ do |link, selector| with_scope(selector) do - click_link(link, :match => :prefer_exact) + + obj = find_link(link, :match => :prefer_exact) + + #FIXME need to investigate why selenium click is not working proprerly with + if page.driver.class.name.include? "Selenium" + page.driver.execute_script("document.evaluate('#{obj.path}', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.click();") + else + obj.click + end end end -- libgit2 0.21.2