features/step_definitions/browser.rb in cello-0.0.17 vs features/step_definitions/browser.rb in cello-0.0.19
- old
+ new
@@ -1,11 +1,9 @@
-Dir[File.dirname(__FILE__) + "/../../pages/*.rb"].each do |file|
- require file
-end
+require "cello"
Given /^I have a browser with no context \(blank page\)$/ do
- @browser = StaticPages::Site::Firefox.new
+ @browser = StaticPages::Site::Phantom.new
end
When /^I ask for the context inputs$/ do
@browser.context StaticPages::Site::InputPage
end
@@ -18,11 +16,12 @@
@browser.title.should == "Inputs page"
@browser.close
end
Given /^I am in the inputs context$/ do
- @browser = StaticPages::Site::Firefox.new
- @browser.context StaticPages::Site::InputPage
+ steps %Q{
+ Given I have a browser with no context (blank page)
+ When I ask for the context inputs}
@browser.visit
@browser.title.should == "Inputs page"
end
When /^I ask for fill the textfield$/ do