Sha256: 1656389a662219fa85444a6c67cf524983a64ed7992ce0d5fb86c1cc3c2648df

Contents?: true

Size: 1.45 KB

Versions: 14

Compression:

Stored size: 1.45 KB

Contents

Lorsqu(/^he go to the people list$/) do
  visit dorsale.customer_vault_people_path
end

Etantdonné(/^existing individuals$/) do
  @individual1 = create(:customer_vault_individual, first_name: "Jean", last_name: "DUPONT")
  @individual2 = create(:customer_vault_individual, first_name: "Laurent", last_name: "DURAND")
end

Etantdonné(/^existing corporations$/) do
  @corporation1 = create(:customer_vault_corporation, name: "aaa", email: "contact@aaa.com")
  @corporation2 = create(:customer_vault_corporation, name: "zzz", email: "contact@zzz.com")
end

Lorsqu(/^he search an individual by first name$/) do
  fill_in "q", with: "Jean"
end

Alors(/^this individual appear in search results$/) do
  find(".search [type=submit]").click
  expect(page).to have_content "Jean"
  expect(page).to have_content "DUPONT"
end

Alors(/^other individuals do not appear in search results$/) do
  expect(page).to have_no_content "Laurent"
  expect(page).to have_no_content "DURAND"
end

Lorsqu(/^he search an individual by last name$/) do
  fill_in "q", with: "DUPONT"
end

Lorsqu(/^he search a corporation by name$/) do
  fill_in "q", with: "aaa"
end

Alors(/^this corporation appear in search results$/) do
  find(".search [type=submit]").click
  expect(page).to have_content "aaa"
  expect(page).to have_content "contact@aaa.com"
end

Alors(/^other corporations do not appear in search results$/) do
  expect(page).to have_no_content "zzz"
  expect(page).to have_no_content "contact@zzz.com"
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dorsale-3.7.6 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.7.5 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.7.4 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.7.2 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.7.1 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.7.0 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.6.1 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.6.0 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.5.2 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.5.1 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.5.0 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.4.0 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.3.0 features/step_definitions/customer_vault_search_steps.rb
dorsale-3.2.0 features/step_definitions/customer_vault_search_steps.rb