summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-08 22:38:29 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-08 22:38:29 +0100
commitfae08104b4f0bfb9612137a4c7313d83a8ba6d84 (patch)
tree5b9bf5629e4acc0151614d7ff7f33300420445cb /features
parent065375ca2d482faac80897e42d82b3afdcb08d99 (diff)
parente616739e2fae12e5358d2cea40089a51468d9b4a (diff)
downloadgitlab-ce-fae08104b4f0bfb9612137a4c7313d83a8ba6d84.tar.gz
Merge branch 'master' into mr-broken
# Conflicts: # app/helpers/ci_status_helper.rb
Diffstat (limited to 'features')
-rw-r--r--features/project/graph.feature5
-rw-r--r--features/steps/project/graph.rb9
2 files changed, 14 insertions, 0 deletions
diff --git a/features/project/graph.feature b/features/project/graph.feature
index 2acd65aea5f..63793d6f989 100644
--- a/features/project/graph.feature
+++ b/features/project/graph.feature
@@ -18,3 +18,8 @@ Feature: Project Graph
Given project "Shop" has CI enabled
When I visit project "Shop" CI graph page
Then page should have CI graphs
+
+ @javascript
+ Scenario: I should see project languages graphs
+ When I visit project "Shop" languages graph page
+ Then page should have languages graphs
diff --git a/features/steps/project/graph.rb b/features/steps/project/graph.rb
index 98f31f3b76a..b09ec86e5df 100644
--- a/features/steps/project/graph.rb
+++ b/features/steps/project/graph.rb
@@ -14,6 +14,15 @@ class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
visit commits_namespace_project_graph_path(project.namespace, project, "master")
end
+ step 'I visit project "Shop" languages graph page' do
+ visit languages_namespace_project_graph_path(project.namespace, project, "master")
+ end
+
+ step 'page should have languages graphs' do
+ expect(page).to have_content "Ruby 66.63 %"
+ expect(page).to have_content "JavaScript 22.96 %"
+ end
+
step 'page should have commits graphs' do
expect(page).to have_content "Commit statistics for master"
expect(page).to have_content "Commits per day of month"