Add tests for commits graph
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
3a8cd1fa59
commit
83a21c33f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue