Sha256: 42f08c59f58b93c621c8a12a12ee25ad88a220ce0fd8481135cd306f812e703d

Contents?: true

Size: 548 Bytes

Versions: 23

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

shared_examples "a paginated collection" do
  before do
    visit current_path
  end

  describe "Number of results per page" do
    it "lists 15 resources per page by default" do
      expect(page).to have_css(".table-list tbody tr", count: 15)
    end

    it "changes the number of results per page" do
      within ".results-per-page__dropdown" do
        page.find("a", text: "15").click
        click_link "50"
      end

      expect(page).to have_selector(".table-list tbody tr", count: 50)
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
decidim-admin-0.25.2 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.25.1 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.25.0 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.25.0.rc4 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.25.0.rc3 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.25.0.rc2 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.25.0.rc1 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.24.3 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.23.6 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.24.2 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.23.5 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.24.1 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.24.0 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.24.0.rc2 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.23.4 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.24.0.rc1 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.23.3 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.23.2 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.23.1 lib/decidim/admin/test/manage_paginated_collection_examples.rb
decidim-admin-0.23.1.rc1 lib/decidim/admin/test/manage_paginated_collection_examples.rb