Sha256: a30ba13dad246748912757de3c72ae1f859168e9bc4ab8e7c424e1cf7c9a9259

Contents?: true

Size: 484 Bytes

Versions: 44

Compression:

Stored size: 484 Bytes

Contents

require 'rails_helper'

feature 'Deleting contact' do
  let(:email) { 'test_email@q.com' }

  scenario 'Visitor deletes contact' do
    login
    using_wait_time 10 do
      create_contact(email)
      expect(page).to have_css('.contacts td', text: email)
      find('.contacts .contact-email', text: email)
        .find(:xpath, 'ancestor::tr[@class="contact"]')
        .find('.delete-button').click

      expect(page).not_to have_css('.contacts td', text: email)
    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_deletes_contact_spec.rb
hubspot-api-client-9.0.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-8.0.1 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-8.0.1 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-8.0.0 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-8.0.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.3.0 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.3.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.2.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.2.0 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.1.1 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.1.1 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.1.0 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.1.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.0.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-7.0.0 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-6.0.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-6.0.0 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-5.0.0 sample-apps/contacts-app/spec/features/visitor_deletes_contact_spec.rb
hubspot-api-client-5.0.0 sample-apps/oauth-app/spec/features/visitor_deletes_contact_spec.rb