diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-29 12:11:53 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-29 12:11:53 +0300 |
commit | 83a21c33f12bfb2dc2059a3d528a0458db147cf9 (patch) | |
tree | a9dd1a5c9f76532511bb5a27c9c909f41a4bca5e /features | |
parent | 3a8cd1fa59dc9d3ab0b00e0f01276e73b35a996c (diff) | |
download | gitlab-ce-83a21c33f12bfb2dc2059a3d528a0458db147cf9.tar.gz |
Add tests for commits graph
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r-- | features/project/graph.feature | 7 | ||||
-rw-r--r-- | features/steps/project/graph.rb | 10 |
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 |