BigW Consortium Gitlab

Add tests for commits graph

parent 3a8cd1fa
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment