Sha256: e296a2b0157802ede36d2476c22b3f35b61402b13b451852b8b909b16f9f3564

Contents?: true

Size: 977 Bytes

Versions: 7

Compression:

Stored size: 977 Bytes

Contents

@dsl
Feature: Sortable tree index view

  Background:
    Given I am logged in
    And catalogues tree exists:
      | title   | parent_name |
      | _1_     |             |
      | _1-1_   | _1_         |
      | _1-2_   | _1_         |
      | _2_     |             |
      | _2-1_   | _2_         |
      | _2-1-1_ | _2-1_       |

  Scenario: Index view as tree
    Given a configuration of:
      """
      class AbAdminCatalogue < AbAdmin::AbstractResource
        settings index_view: 'tree'
      end
      """
    And I am on the admin catalogues page
    Then I should see catalogues tree

  Scenario: Custom node view
    Given a configuration of:
      """
      class AbAdminCatalogue < AbAdmin::AbstractResource
        settings index_view: 'tree'

        tree do |node|
          link_to "Custom node title", root_path, class: 'tree-item_link'
        end
      end
      """
    And I am on the admin catalogues page
    Then I should see "Custom node title"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.3.6 features/dsl/tree.feature
ab_admin-0.3.5 features/dsl/tree.feature
ab_admin-0.3.4 features/dsl/tree.feature
ab_admin-0.3.3 features/dsl/tree.feature
ab_admin-0.3.2 features/dsl/tree.feature
ab_admin-0.3.1 features/dsl/tree.feature
ab_admin-0.3.0 features/dsl/tree.feature