Sha256: 34f53dead1e70fe0d8f64bbb35e771917a27dadda798f70665d8112fa18f7e34

Contents?: true

Size: 1.16 KB

Versions: 12

Compression:

Stored size: 1.16 KB

Contents

# encoding: utf-8
require 'acceptance_helper'

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

  it 'should return records displayed on the page' do
    expect(page).to have_content('10 records on the current page: 507, 519, 537, 540, 511, 515, 523, 524, 527, and 531')
  end

  it 'should show records displayed on all pages with a text filter selection' do
    fill_in('g_f_title', with: 'ed')
    expect(page).to have_content('1-2 / 2')
    expect(page).to have_content('2 records on the current page: 507 and 534')
  end

  it 'should show records displayed on all pages with a filter selection' do
    select 'no',  from: 'g_f_archived'
    expect(page).to have_content('1-10 / 46')
    expect(page).to have_content('10 records on the current page: 507, 519, 537, 540, 511, 515, 523, 527, 531, and 542')
  end

  it 'should show records displayed on all pages with a custom filter selection' do
    select 'Cancelled',  from: 'g_f_status_id'
    expect(page).to have_content('1-8 / 8')
    expect(page).to have_content('8 records on the current page: 511, 515, 523, 524, 527, 531, 542, and 551')
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

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