added a special case for share bc js being slow

This commit is contained in:
zhitomirskiyi 2011-02-03 16:16:27 -08:00
parent 1ed737c3b9
commit 1fbcb3c3e5
2 changed files with 6 additions and 4 deletions

View file

@ -395,7 +395,7 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
add_index "profiles", ["first_name", "searchable"], :name => "index_profiles_on_first_name_and_searchable"
add_index "profiles", ["last_name", "searchable"], :name => "index_profiles_on_last_name_and_searchable"
add_index "profiles", ["mongo_id"], :name => "index_profiles_on_mongo_id"
add_index "profiles", ["person_id"], :name => "index_profiles_on_person_id", :unique => true
add_index "profiles", ["person_id"], :name => "index_profiles_on_person_id"
create_table "requests", :force => true do |t|
t.integer "sender_id", :null => false
@ -457,8 +457,8 @@ ActiveRecord::Schema.define(:version => 20110202015222) do
t.datetime "created_at"
t.datetime "updated_at"
t.string "mongo_id"
t.string "invitation_service"
t.string "invitation_identifier"
t.string "invitation_service", :limit => 127
t.string "invitation_identifier", :limit => 127
end
add_index "users", ["email"], :name => "index_users_on_email"

View file

@ -26,7 +26,9 @@ end
When /^(?:|I )press "([^"]*)"(?: within "([^"]*)")?$/ do |button, selector|
with_scope(selector) do
silence_warnings { click_button(button) } # ruby 1.9 produces a warning about UTF8 from rack-util
silence_warnings {
sleep 1 if button == "Share"
click_button(button) } # ruby 1.9 produces a warning about UTF8 from rack-util
end
end