summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--features/project/graph.feature7
-rw-r--r--features/steps/project/graph.rb10
2 files changed, 16 insertions, 1 deletions
diff --git a/features/project/graph.feature b/features/project/graph.feature
index cda95f5dda6..89064242c1c 100644
--- a/features/project/graph.feature
+++ b/features/project/graph.feature
@@ -2,8 +2,13 @@ Feature: Project Graph
Background:
Given I sign in as a user
And I own project "Shop"
- And I visit project "Shop" graph page
@javascript
Scenario: I should see project graphs
+ When I visit project "Shop" graph page
Then page should have graphs
+
+ @javascript
+ Scenario: I should see project commits graphs
+ When I visit project "Shop" commits graph page
+ Then page should have commits graphs
diff --git a/features/steps/project/graph.rb b/features/steps/project/graph.rb
index c54321717b3..ba460ac8097 100644
--- a/features/steps/project/graph.rb
+++ b/features/steps/project/graph.rb
@@ -10,4 +10,14 @@ class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
project = Project.find_by(name: "Shop")
visit project_graph_path(project, "master")
end
+
+ step 'I visit project "Shop" commits graph page' do
+ project = Project.find_by(name: "Shop")
+ visit commits_project_graph_path(project, "master")
+ end
+
+ step 'page should have commits graphs' do
+ page.should have_content "Commits statistic for master"
+ page.should have_content "Commits per day of month"
+ end
end