Sha256: 016371a336773433f302ab037fbb77a67f18e3639526fef0ae456b79b6e01501

Contents?: true

Size: 899 Bytes

Versions: 10

Compression:

Stored size: 899 Bytes

Contents

Feature: Show - Tabs

  Add tabs with different content to the page

  Background:
    Given a post with the title "Hello World" written by "Jane Doe" exists

  @javascript
  Scenario: Set a method to be called on the resource as the title
    Given a show configuration of:
    """
      ActiveAdmin.register Post do
        show do
          tabs do
            tab :overview do
              span "tab 1"
            end

            tab 'テスト', id: :test_non_ascii do
              span "tab 2"
            end
          end
        end
      end
    """

    Then show me the page
    Then I should see two tabs "Overview" and "テスト"
    And I should see the element "#overview span"
    And I should not see the element "#test_non_ascii span"
    Then I follow "テスト"
    And I should see the element "#test_non_ascii span"
    And I should not see the element "#overview span"

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
activeadmin-rb-1.6.0 features/show/tabs.feature
activeadmin-rb-1.5.2 features/show/tabs.feature
activeadmin-rb-1.5.1 features/show/tabs.feature
activeadmin-rb-1.5.0 features/show/tabs.feature
activeadmin-rb-1.4.0 features/show/tabs.feature
activeadmin-1.3.1 features/show/tabs.feature
activeadmin-1.3.0 features/show/tabs.feature
activeadmin-1.2.1 features/show/tabs.feature
activeadmin-1.2.0 features/show/tabs.feature
activeadmin-1.1.0 features/show/tabs.feature