Sha256: b983590036548bdc76473ed4495310eabab4418ae6505f44864808d93dfc2b93
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
require "mock/page" require File.dirname(__FILE__) + "/spec_helper" describe Cello::PageObjects::TextfieldHelper do describe "define_extras_for_textfield" do before(:all) do @page = Mock::Site::MockPage.new "foo" end it "Veify if the textfield is enabled" do (@page.methods.map.include? :text_field_is_enable?).should be true end it "Clear the textfield" do (@page.methods.map.include? :text_field_clear).should be true end it "Get the text from the textfield" do (@page.methods.map.include? :text_field_get_text).should be true end it "Fill the textfield with some specific text" do (@page.methods.map.include? :text_field_fill_with).should be true end it "Verify if the textfield does not contain some text" do (@page.methods.map.include? :text_field_dont_contain).should be true end it "Verify if the textfield contains some text" do (@page.methods.map.include? :text_field_contains).should be true end it "Verify if the containt of the textfield is exacly some text" do (@page.methods.map.include? :text_field_text_is).should be true end it "Verify if the textfield is empty" do (@page.methods.map.include? :text_field_is_empty?).should be true end it "Get the size of the containt of the textfield" do (@page.methods.map.include? :text_field_text_size).should be true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cello-0.0.27 | spec/textfield_spec.rb |
cello-0.0.26 | spec/textfield_spec.rb |
cello-0.0.25 | spec/textfield_spec.rb |