Sha256: ddc7058abb5892978f9145f2f4a1578c1666b4b5370a924ab3214cc0a2287f68
Contents?: true
Size: 1.38 KB
Versions: 4
Compression:
Stored size: 1.38 KB
Contents
require 'rails_helper' # TODO: - use page object here too module Pwb RSpec.describe "Default theme property search", type: :feature, js: true do pending " while investigating timeout issue with capybara " # before(:all) do # @agency = FactoryGirl.create(:pwb_agency, :theme_default, company_name: 'my re') # # @agency.theme_name = "berlin" # # @agency.save! # @prop_for_long_term_rent = FactoryGirl.create( # :pwb_prop, # :long_term_rent, # price_rental_monthly_current_cents: 100_000, # reference: "ref_pfltr" # ) # end # scenario 'property search works' do # visit('/en/rent') # # puts current_url # # require 'pry'; binding.pry # # save_and_open_page # # save_and_open_screenshot # expect(page).to have_css(".property-item", count: Prop.visible.for_rent.count) # # Capybara.ignore_hidden_elements = false # # passing visible: false below would be like setting above # select('2,500', from: 'search_for_rent_price_from', visible: false) # click_button('Search') # expect(page).to have_css(".property-item", count: Prop.visible.for_rent.for_rent_price_from(250_000).count) # # expect(current_path).to eq("/en") # end # after(:all) do # @agency.destroy # @prop_for_long_term_rent.destroy # # @prop_for_sale.destroy # end end end
Version data entries
4 entries across 4 versions & 1 rubygems