Sha256: b207e17f4aa384e0fecf5cb1d37d8c487335ee4d5c73ec3cc8d99475a098e14f

Contents?: true

Size: 796 Bytes

Versions: 22

Compression:

Stored size: 796 Bytes

Contents

require 'rails_helper'

feature 'Visitor searches contacts' do
  let(:email) { 'test_email@q.com' }
  let(:wrong_email) { 'wrong_email.com' }

  before do
    login
    using_wait_time 10 do
      create_contact(email)
    end
  end

  after do
    remove_test_contact(email)
  end

  scenario 'with correct query' do
    using_wait_time 10 do
      find("input[id$='search']").set(email).native.send_keys(:return)
      expect(page).to have_css('.contacts td', text: email)
    end
  end

  scenario 'with correct query' do
    using_wait_time 10 do
      search_input = find("input[id$='search']")
      search_input.set(wrong_email).native.send_keys(:return)
      expect(page).not_to have_css('.contacts td', text: email)
      search_input.set('').native.send_keys(:return)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-8.0.1 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-8.0.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-7.3.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-7.2.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-7.1.1 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-7.1.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-7.0.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-6.0.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-5.0.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-4.0.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-3.3.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-3.2.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-3.1.1 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-3.1.0.pre.beta sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-3.0.0.pre.beta sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-2.3.2 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-2.3.1 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-2.2.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb
hubspot-api-client-2.1.0 sample-apps/oauth-app/spec/features/visitor_searches_contacts_spec.rb