Sha256: 6a5ba177ca362fd7c06106596e478ddc0cd37100bbe1714c43577899bca7e199

Contents?: true

Size: 574 Bytes

Versions: 44

Compression:

Stored size: 574 Bytes

Contents

require 'rails_helper'

feature 'Visitor creates new contact' do
  let(:email) { 'test_email@q.com' }
  let(:incorrect_email) { 'wrong_email.com' }

  before do
    login
  end

  scenario 'with correct data' do
    using_wait_time 10 do
      create_contact(email)

      expect(page).to have_css('.contacts td', text: email)
      remove_test_contact(email)
    end
  end

  scenario 'with incorrect data' do
    using_wait_time 10 do
      create_contact(incorrect_email)

      expect(page).to have_css('.error', text: 'Property values were not valid')
    end
  end
end

Version data entries

44 entries across 22 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-9.0.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-8.0.1 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-8.0.1 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-8.0.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-8.0.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.3.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.3.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.2.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.2.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.1.1 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.1.1 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.1.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.1.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.0.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-7.0.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-6.0.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-6.0.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-5.0.0 sample-apps/contacts-app/spec/features/visitor_creates_new_contact_spec.rb
hubspot-api-client-5.0.0 sample-apps/oauth-app/spec/features/visitor_creates_new_contact_spec.rb