11Feature : Dashboard
22
3- Background :
3+ @dashboard
4+ Scenario : With default configuration
5+ Given a configuration of:
6+ """
7+ ActiveAdmin.register_page "Dashboard" do
8+ content do
9+ para "Hello world from the dashboard page"
10+ end
11+ end
12+ """
413 Given I am logged in
14+ When I go to the dashboard
15+ Then I should see the Active Admin layout
16+ And I should not see the default welcome message
17+ And I should see "Hello world from the dashboard page"
518
6-
7- Scenario : With no configuration
19+ @dashboard
20+ Scenario : DEPRECATED - With default configuration
821 Given a configuration of:
922 """
23+ ActiveAdmin::Dashboards.build do
24+ end
1025 """
26+ Given I am logged in
1127 When I go to the dashboard
12- Then I should see the default welcome message
28+ Then I should see the Active Admin layout
29+ And I should see the default welcome message
1330
14- Scenario : Displaying a dashboard widget
31+ @dashboard
32+ Scenario : DEPRECATED - Displaying a dashboard widget
1533 Given a configuration of:
1634 """
1735 ActiveAdmin::Dashboards.build do
@@ -20,12 +38,15 @@ Feature: Dashboard
2038 end
2139 end
2240 """
41+ Given I am logged in
2342 When I go to the dashboard
24- Then I should not see the default welcome message
43+ Then I should see the Active Admin layout
44+ And I should not see the default welcome message
2545 And I should see a dashboard widget "Hello World"
2646 And I should see "Hello world from the content"
2747
28- Scenario : Displaying a dashboard widget using the ':if' option
48+ @dashboard
49+ Scenario : DEPRECATED - Displaying a dashboard widget using the ':if' option
2950 Given a configuration of:
3051 """
3152 ActiveAdmin::Dashboards.build do
@@ -38,7 +59,9 @@ Feature: Dashboard
3859 end
3960 end
4061 """
62+ Given I am logged in
4163 When I go to the dashboard
42- Then I should not see the default welcome message
64+ Then I should see the Active Admin layout
65+ And I should not see the default welcome message
4366 And I should see a dashboard widget "Hello World"
4467 And I should not see a dashboard widget "Hidden by If"
0 commit comments