Sha256: 2ebecec2d83da51425409101c48a6d27db5f9d5d92ff9045ef065de787b654aa
Contents?: true
Size: 806 Bytes
Versions: 7
Compression:
Stored size: 806 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: 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
7 entries across 7 versions & 1 rubygems