Sha256: 90279d0481442bc40a12d542ef7f5de4b3f64ffdeb1aa4afdca246589f8d8531

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

When(/^I search "(.*?)"$/) do |q|
  fill_in "q", with: q
  find("form.search button").click
end

When(/^an existing customer$/) do
  @customer = create(:customer_vault_corporation)
end

When(/^he goes to the next page$/) do
  find(".next").click
end

Given(/^an existing id card$/) do
  @id_card = create(:billing_machine_id_card)
end

Given(/^an existing payment term$/) do
  @payment_term = create(:billing_machine_payment_term)
end

Given(/^an authenticated user$/) do
  @user = create(:user)
  sign_in @user
end

Given(/^an active user$/) do
  @user = create(:user)
end

Given(/^an inactive user$/) do
  @user = create(:user, is_active: false)
end

Given(/^an existing "(.*?)" having "(.*?)" set to "(.*?)"$/) do |factory, key, value|
  create(factory, key => value)
end

Then(/^the selected filter is "(.*?)"$/) do |value|
  selected_values = all(".filters select").map(&:value)
  expect(selected_values).to include value
end

Then(/^he do not see the "([^"]*)" filter$/) do |id|
  expect(page).to have_no_selector("#filters_#{id}")
end

When(/^he select custom date filter$/) do
  select "Choisir une date"
end

Then(/^he see the "([^"]*)" filter$/) do |id|
  expect(page).to have_selector("#filters_#{id}")
end

When(/^(?:I|he|she) export to XLSX$/) do
  find("a[href$=xlsx]").click
end

When(/^(?:I|he|she) download XLSX file$/) do
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dorsale-3.5.0 features/step_definitions/common_steps.rb
dorsale-3.4.0 features/step_definitions/common_steps.rb
dorsale-3.3.0 features/step_definitions/common_steps.rb
dorsale-3.2.0 features/step_definitions/common_steps.rb