Sha256: 9e87e5efe5678aff80d10d19a18955db22e50367b64dbf64f98fab05f0d6a9b0
Contents?: true
Size: 1002 Bytes
Versions: 4
Compression:
Stored size: 1002 Bytes
Contents
Dir[File.dirname(__FILE__) + "/../../pages/*.rb"].each do |file| require file end Given /^I am on The Bug Bang Theory home page$/ do @home = BugBang::HomePage.new end When /^I write "(.*?)" on search field$/ do |search_text| @home.search_field_fill_with(search_text) end When /^ask to search$/ do @home.search_button_click end Then /^I should see the follow results:$/ do |results| results.hashes.each do |text| @home.search text.to_s end @home.get_picture embed 'screenshot.png', 'image/png' @home.close end When /^I go to about page$/ do @home.about_page_button_click end Then /^I should see the text "(.*?)"$/ do |text| @home.search text.to_s @home.get_picture embed 'screenshot.png', 'image/png' @home.close end Then /^I want see the the last twelve postblog session$/ do pending # express the regexp above with the code you wish you had end Then /^It should be twelve links$/ do pending # express the regexp above with the code you wish you had end
Version data entries
4 entries across 4 versions & 1 rubygems