Fix the failing cukes in project_creation_with_type.feature

pull/1281/head
Ion Biziiac 11 years ago
parent 2ca6fc1942
commit 96f365d5e3
  1. 2
      features/project_types/project_creation_with_type.feature
  2. 4
      features/step_definitions/web_steps.rb

@ -46,7 +46,7 @@ Feature: Project creation with support for project type
Scenario: The admin may create a project with a project type
Given I am already admin
When I go to the admin page
And I follow "Projects"
And I follow the first link matching "Projects"
And I follow "New project"
Then I fill in "Fancy Pants" for "Name"
And I fill in "fancy-pants" for "Identifier"

@ -435,6 +435,10 @@ When /^(?:|I )click on the first button matching "([^"]*)"$/ do |button|
first(:button, button).click
end
When /^(?:|I )follow the first link matching "([^"]*)"$/ do |link|
first(:link, link).click
end
def find_lowest_containing_element text, selector
elements = []

Loading…
Cancel
Save