Sha256: 7bed4161a8e7722c7799e7b0ea23fd36e5a808cbb84b3ae5851aaf0bab210d70

Contents?: true

Size: 1.33 KB

Versions: 7

Compression:

Stored size: 1.33 KB

Contents

Feature: Filtering

  Background:
    Given I generate 100 users

  Scenario: Filtering by text_field
    Given I am on the list of users page
    When I fill in "Name" with "user001"
    And I press "Apply changes"
    Then I should see "user001"
    And the "Name" field should contain "user001"
    And I should see "1 of 1"

  Scenario: Filtering by select
    Given I am on the list of users page
    When I select "Admin" from "Role"
    And I press "Apply changes"
    Then I should see "admin001"
    And "Admin" should be selected for "Role"
    And I should see "1 of 1"

  Scenario: Filtering by checkox
    Given I am on the list of users page
    When I check "Banned"
    And I press "Apply changes"
    Then the "Banned" checkbox should be checked
    And I should see "user101"
    And I should see "1 of 1"

  @javascript
  Scenario: Reset filter
    Given I am on the list of users page
    When I fill in "Name" with "user001"
    And I select "Admin" from "Role"
    And I check "Banned"
    And I press "Apply changes"
    Then the "Name" field should contain "user001"
    And "Admin" should be selected for "Role"
    And the "Banned" checkbox should be checked
    When I press "Reset changes"
    Then the "Name" field should contain ""
    And nothing should be selected for "Role"
    And the "Banned" checkbox should not be checked

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mighty_grid-2.1.1 features/filtering.feature
mighty_grid-2.1.0 features/filtering.feature
mighty_grid-2.0.0 features/filtering.feature
mighty_grid-2.0.0.rc1 features/filtering.feature
mighty_grid-1.0.0 features/filtering.feature
mighty_grid-0.7.0 features/filtering.feature
mighty_grid-0.6.1 features/filtering.feature