Sha256: 5118b9b73c439c66b0fe3e40844d4e8e1378b73adfab99ed78f7ef2a52ccefbb

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

Feature: Grid sorting
  In order to value
  As a role
  I want feature

  @javascript
  Scenario: Sorting on regular column
    Given the following books exist:
    | title   |
    | Belief  |
    | Cosmos  |
    | Avatar  |

    When I go to the BookGrid test page
    And I click on column "Title"
    And I sleep 1 second
    Then the grid should have records sorted by "Title"

    When I click on column "Title"
    And I sleep 1 second
    Then the grid should have records sorted by "Title" desc

  @javascript
  Scenario: Sorting on association column
    Given an author exists with first_name: "Herman", last_name: "Hesse"
    And a book exists with title: "Damian", author: that author
    And an author exists with first_name: "Carlos", last_name: "Castaneda"
    And a book exists with title: "Journey", author: that author
    And an author exists with first_name: "John", last_name: "Fowles"
    And a book exists with title: "Magus", author: that author

    When I go to the BookGridWithCustomColumns test page
    And I click on column "Author  first name"
    And I sleep 1 second
    Then the grid should have records sorted by "Author  first name"

    When I click on column "Author  first name"
    And I sleep 1 second
    Then the grid should have records sorted by "Author  first name" desc

    When I go to the BookGrid test page
    And I click on column "Author  name"
    And I sleep 1 second
    Then the grid should have records sorted by "Author  name"
    When I click on column "Author  name"
    And I sleep 1 second
    Then the grid should have records sorted by "Author  name" desc

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netzke-basepack-0.7.4 test/basepack_test_app/features/grid_sorting.feature
netzke-basepack-0.7.3 test/basepack_test_app/features/grid_sorting.feature