Sha256: abea7c5982289ae3efcc8c15d9583186aac40cc6c96cbb6a484b9b7b65ea34af

Contents?: true

Size: 1.25 KB

Versions: 11

Compression:

Stored size: 1.25 KB

Contents

Feature: Index Pagination

  Background:
    Given an index configuration of:
    """
      ActiveAdmin.register Post
    """
  Scenario: Filtering posts
    Given 20 posts exist
    When I am on the index page for posts
    Then I should see "Displaying all 20 Posts"
    And I should see "Author" within ".filter_form"
    And I should see "Category" within ".filter_form"
    And I should see "Search Title" within ".filter_form"
    And I should see "Search Body" within ".filter_form"
    And I should see "Published at" within ".filter_form"
    And I should see "Created at" within ".filter_form"
    And I should see "Updated at" within ".filter_form"
    
    When I fill in "Search Title" with "Hello World 17"
    And I press "Filter"
    And I should see 1 posts in the table
    And I should see "Hello World 17" within ".index_table"
    
  Scenario: Filtering posts with no results
    Given 20 posts exist
    When I am on the index page for posts
    Then I should see "Displaying all 20 Posts"
    When I fill in "Search Title" with "THIS IS NOT AN EXISTING TITLE!!"
    And I press "Filter"
    
    And I should not see ".index_table"
    Then I should not see a sortable table header
    And I should not see pagination
    And I should see "No Posts found"

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
activeadmin-0.4.0 features/index/filters.feature
andrewroth_activeadmin-0.3.4.4 features/index/filters.feature
andrewroth_activeadmin-0.3.4.3 features/index/filters.feature
andrewroth_activeadmin-0.3.4.2 features/index/filters.feature
andrewroth_activeadmin-0.3.4.1 features/index/filters.feature
andrewroth_activeadmin-0.3.4 features/index/filters.feature
activeadmin-0.3.4 features/index/filters.feature
activeadmin-0.3.3 features/index/filters.feature
activeadmin-0.3.2 features/index/filters.feature
activeadmin-0.3.1 features/index/filters.feature
activeadmin-0.3.0 features/index/filters.feature