Sha256: 18a0f98964c6401e070a58ae1cf168d3c61169d0c6feb032b4a1f429988d3d1c

Contents?: true

Size: 1.72 KB

Versions: 4

Compression:

Stored size: 1.72 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 wait for the response from the server
    Then the grid should have records sorted by "Title"

    When I click on column "Title"
    And I wait for the response from the server
    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 wait for the response from the server
    Then the grid should have records sorted by "Author  first name"

    When I click on column "Author  first name"
    And I wait for the response from the server
    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 wait for the response from the server
    Then the grid should have records sorted by "Author  name"
    When I click on column "Author  name"
    And I wait for the response from the server
    Then the grid should have records sorted by "Author  name" desc

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/features/grid_sorting.feature
netzke-basepack-zh-0.7.6 test/basepack_test_app/features/grid_sorting.feature
netzke-basepack-0.7.6 test/basepack_test_app/features/grid_sorting.feature
netzke-basepack-0.7.5 test/basepack_test_app/features/grid_sorting.feature