Sha256: b22c36994050846efe110e174d62c27850ea113f83aeae1f2c816291422dcbd5

Contents?: true

Size: 942 Bytes

Versions: 11

Compression:

Stored size: 942 Bytes

Contents

# encoding: utf-8
require 'acceptance_helper'

describe 'custom_ordering WiceGrid', type: :feature, js: true do
  before :each do
    visit '/custom_filters3'
  end

  it 'should have all options' do
    expect(page).to have_select('grid_f_expected_version_id', options: %w(-- 1.0 2.0 1.2))
    expect(page).to have_select('grid_f_versions_name', options: %w(-- 1.0 1.1 1.2 2.0 3.0 6.0 7.1 8.0 88.1 99.0))
  end

  it 'should filter by custom fields' do
    first(:css, '.expand-multi-select-icon').click

    select('1.0', from: 'grid_f_versions_name')
    select('1.1', from: 'grid_f_versions_name')

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

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

    select '1.0', from: 'grid_f_expected_version_id'

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

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

Version data entries

11 entries across 11 versions & 2 rubygems

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