Sha256: 5c7db42df3b3645c59bba3cf5cbd52ec5bc2872710dd33addae3774d09417df6

Contents?: true

Size: 1.39 KB

Versions: 4

Compression:

Stored size: 1.39 KB

Contents

require 'rails_helper'

module Pwb
  RSpec.describe "Berlin theme property search", type: :feature, js: true do
    pending " while investigating timeout issue with capybara "

    # before(:all) do
    #   @agency = FactoryGirl.create(:pwb_agency, :theme_berlin, 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

    #   property_search_page = Pages::PropertySearch.new
    #   expect(property_search_page).to have_search_result_count(Prop.visible.for_rent.count)
    #   # (".property-item", count: Prop.visible.for_rent.count)

    #   property_search_page.search_rentals('2,500')
    #   expect(property_search_page).to have_search_result_count(Prop.visible.for_rent.for_rent_price_from(250_000).count)
    #   # expect(page).to have_css(".property-item", count:  Prop.visible.for_rent.for_rent_price_from(250000).count)
    # 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

Version Path
pwb-1.3.0 spec/features/pwb/theme_berlin/prop_search_spec.rb
pwb-1.2.0 spec/features/pwb/theme_berlin/prop_search_spec.rb
pwb-1.1.1 spec/features/pwb/theme_berlin/prop_search_spec.rb
pwb-1.0.0 spec/features/pwb/theme_berlin/prop_search_spec.rb