Sha256: 4e4f6987c2120742f9debea1429af7483968ca27c7e2b492bfeeba12578e31d6

Contents?: true

Size: 801 Bytes

Versions: 1

Compression:

Stored size: 801 Bytes

Contents

When(/^I export people list$/) do
  find("[href$=xlsx]").click
end

Then(/^the file is downloaded$/) do
  # Nothing to do, error appears in previous step if any problem
end

Given(/^a very long comment on this person$/) do
  text = Faker::Lorem.paragraph(sentence_count: 30)
  @comment = create(:customer_vault_event_comment, person: @person, text:)
end

Then(/^I see the truncated comment$/) do
  expect(page).to have_selector(".comment-text-truncated")
  expect(page).to have_no_selector(".comment-text")
end

Then(/^I see the full comment$/) do
  expect(page).to have_selector(".comment-text")
  expect(page).to have_no_selector(".comment-text-truncated")
end

Given(/^a short comment on this person$/) do
  @comment = create(:customer_vault_event_comment, person: @person, text: "i am short")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dorsale-4.0.0 features/step_definitions/customer_vault_people_steps.rb