Sha256: 8f15a622beb7f99b4eae27b044bfc9929cc27d4fde919288a21f119a2d4c54ec

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

@javascript
Feature: paging
  In order to see limited items per page
  As an Viewer
  I want to have paging function

  Background:
    Given I am signed in as Joe Admin
    And I create Search card "basic card search" with content "{\"type\":\"basic\"}"

  Scenario: jump to pages should keep the item structure
    When I create HTML card "basic item structure" with content "{{_|name}}"
    And I create HTML card "list all basic cards" with content "{{basic card search||content;structure:basic item structure}}"
    And I go to card "list all basic cards"
    And I click "2" within ".paging"
    And I wait until ajax response done
    Then I should see css class ".STRUCTURE-basic_item_structure" within ".search-result-item"
    And I click "3" within ".paging"
    And I wait until ajax response done
    Then I should see css class ".STRUCTURE-basic_item_structure" within ".search-result-item"

  Scenario: jump to pages should keep the item view
    When I create HTML card "list basic types" with content "{{basic card search|open|closed}}"
    And I go to card "list basic types"
    And I click "2" within ".paging"
    And I wait until ajax response done
    Then I should see css class ".closed-view" within ".search-result-item"
    And I click "3" within ".paging"
    And I wait until ajax response done
    Then I should see css class ".TYPE-search.open-view"
    Then I should see css class ".closed-view" within ".search-result-item"



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wagn-1.20.0 features/paging.feature