gitlab-org--gitlab-foss/features/steps/project/graph.rb
Dmitriy Zaporozhets 83a21c33f1
Add tests for commits graph
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-09-29 12:11:53 +03:00

23 lines
681 B
Ruby

class Spinach::Features::ProjectGraph < Spinach::FeatureSteps
include SharedAuthentication
include SharedProject
step 'page should have graphs' do
page.should have_selector ".stat-graph"
end
When 'I visit project "Shop" graph page' do
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