Sha256: 40144a0d7bb8db4d2ab01ee4788822f16af6009f2cd7b527e510d8a877749937

Contents?: true

Size: 1.21 KB

Versions: 54

Compression:

Stored size: 1.21 KB

Contents

Feature: Index Pagination

  Background:
  Scenario: Viewing index when one page of resources exist
    Given an index configuration of:
    """
      ActiveAdmin.register Post
    """
    Given 20 posts exist
    When I am on the index page for posts
    Then I should see "Displaying all 20 Posts"
    And I should not see pagination

  Scenario: Viewing index when multiple pages of resources exist
    Given an index configuration of:
    """
      ActiveAdmin.register Post
    """
    Given 31 posts exist
    When I am on the index page for posts
    Then I should see pagination with 2 pages

  Scenario: Viewing index with a custom per page set
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        config.per_page = 2
      end
    """
    Given 3 posts exist
    When I am on the index page for posts
    Then I should see pagination with 2 pages
    And I should see "Displaying Posts 1 - 2 of 3 in total"

  Scenario: Viewing index with pagination disabled
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        config.paginate = false
      end
    """
    Given 31 posts exist
    When I am on the index page for posts
    Then I should not see pagination

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/index/pagination.feature
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/index/pagination.feature