Sha256: bef938432da9e3d26a1f3b4a5d6b8aee91f6ea47e82aa08b6c8ba62222bf8271

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

@javascript
Feature: Show - Tabs

  Add tabs with different content to the page

  Scenario: Set a method to be called on the resource as the title
    Given a post with the title "Hello World" written by "Jane Doe" exists

    And 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

            tab '๐Ÿค—' do
              span "tab 3"
            end
          end
        end
      end
    """

    Then I should see tabs:
    | Tab title |
    | Overview  |
    | ใƒ†ใ‚นใƒˆ     |
    | ๐Ÿค—        |
    And I should see tab content "tab 1"
    And I should not see tab content "tab 2"
    And I should not see tab content "tab 3"

    When I follow "ใƒ†ใ‚นใƒˆ"
    Then I should not see tab content "tab 1"
    And I should see tab content "tab 2"
    And I should not see tab content "tab 3"

    When I follow "๐Ÿค—"
    Then I should not see tab content "tab 1"
    And I should not see tab content "tab 2"
    And I should see tab content "tab 3"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-rails-1.7.2 features/show/tabs.feature
activeadmin-rails-1.7.1 features/show/tabs.feature
activeadmin-rails-1.7.0 features/show/tabs.feature