Sha256: 0b4331005097ae93d3e2b438e50d1f52422a9cd7efb54ebb96d243e4d5c0c291

Contents?: true

Size: 1.68 KB

Versions: 12

Compression:

Stored size: 1.68 KB

Contents

# encoding: utf-8
require 'acceptance_helper'

describe 'dates WiceGrid', type: :request, js: true do
  before :each do
    visit '/dates'
  end

  include_examples 'sorting Title'
  include_examples 'sorting Archived'
  include_examples 'sorting Due Date'

  include_examples 'sorting Title in all records mode'
  include_examples 'sorting Archived in all records mode'
  include_examples 'sorting Due Date in all records mode'

  include_examples 'Archived filtering'
  include_examples 'Title filtering'

  include_examples 'Due Date datepicker filtering'

  include_examples 'Added datepicker filtering'
  include_examples 'Created At standard filtering'

  it 'should filter by multiple fields' do
    select '2011', from: 'grid_f_updated_at_fr_year'
    select 'January', from: 'grid_f_updated_at_fr_month'
    select '8', from: 'grid_f_updated_at_fr_day'
    select '00', from: 'grid_f_updated_at_fr_hour'
    select '00', from: 'grid_f_updated_at_fr_minute'

    select '2011', from: 'grid_f_updated_at_to_year'
    select 'December', from: 'grid_f_updated_at_to_month'
    select '10', from: 'grid_f_updated_at_to_day'
    select '00', from: 'grid_f_updated_at_to_hour'
    select '00', from: 'grid_f_updated_at_to_minute'

    set_datepicker(self, 'grid_f_created_at_fr_date_placeholder', 2011, 8, 1)

    set_datepicker(self, 'grid_f_created_at_to_date_placeholder', 2011, 8, 30)

    find(:css, '#grid_submit_grid_icon').click

    within '.pagination_status' do
      expect(page).to have_content('1-4 / 4')
    end

    fill_in('grid_f_title', with: 'at')

    find(:css, '#grid_submit_grid_icon').click

    within '.pagination_status' do
      expect(page).to have_content('1-1 / 1')
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
wice_grid-6.1.3 spec/features/dates_request_spec.rb
wice_grid-6.1.2 spec/features/dates_request_spec.rb
wice_grid-6.1.1 spec/features/dates_request_spec.rb
wice_grid-6.1.0 spec/features/dates_request_spec.rb
pwice_grid-7.0.0 spec/features/dates_request_spec.rb
pwice_grid-6.1.2 spec/features/dates_request_spec.rb
pwice_grid-6.1.1 spec/features/dates_request_spec.rb
pwice_grid-6.1.0 spec/features/dates_request_spec.rb
pwice_grid-5.0.2 spec/features/dates_request_spec.rb
pwice_grid-5.0.1 spec/features/dates_request_spec.rb
pwice_grid-5.0.0 spec/features/dates_request_spec.rb
wice_grid-4.1.0 spec/features/dates_request_spec.rb