Sha256: c7c4fb8860fda93e9db848e1f3c485045ba5b144a0287a486e3d16fdd92abbc1

Contents?: true

Size: 1.96 KB

Versions: 50

Compression:

Stored size: 1.96 KB

Contents

Feature: Dashboard

  @dashboard
  Scenario: With default configuration
    Given a configuration of:
      """
      ActiveAdmin.register_page "Dashboard" do
        content do
          para "Hello world from the dashboard page"
        end
      end
      """
    Given I am logged in
    When I go to the dashboard
    Then I should see the Active Admin layout
    And I should not see the default welcome message
    And I should see "Hello world from the dashboard page"

  @dashboard
  Scenario: DEPRECATED - With default configuration
    Given a configuration of:
      """
        ActiveAdmin::Dashboards.build do
        end
      """
    Given I am logged in
    When I go to the dashboard
    Then I should see the Active Admin layout
    And I should see the default welcome message

  @dashboard
  Scenario: DEPRECATED - Displaying a dashboard widget
    Given a configuration of:
      """
      ActiveAdmin::Dashboards.build do
        section 'Hello World' do
          para "Hello world from the content"
        end
      end
      """
    Given I am logged in
    When I go to the dashboard
    Then I should see the Active Admin layout
    And I should not see the default welcome message
    And I should see a dashboard widget "Hello World"
    And I should see "Hello world from the content"

  @dashboard
  Scenario: DEPRECATED - Displaying a dashboard widget using the ':if' option
    Given a configuration of:
      """
      ActiveAdmin::Dashboards.build do
        section 'Hello World', :if => proc{ current_admin_user } do
          "Hello world from the content"
        end

        section 'Hidden by If', :if => proc{ false } do
          "Hello world from the content"
        end
      end
      """
    Given I am logged in
    When I go to the dashboard
    Then I should see the Active Admin layout
    And I should not see the default welcome message
    And I should see a dashboard widget "Hello World"
    And I should not see a dashboard widget "Hidden by If"

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/dashboard.feature
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/dashboard.feature