Commit a6cfb54c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed network tests

parent 37472203
...@@ -3,7 +3,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps ...@@ -3,7 +3,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
include SharedProject include SharedProject
Then 'page should have network graph' do Then 'page should have network graph' do
page.should have_selector ".graph" page.should have_selector ".network-graph"
end end
When 'I visit project "Shop" network page' do When 'I visit project "Shop" network page' do
...@@ -23,7 +23,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps ...@@ -23,7 +23,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
end end
And 'page should have "master" on graph' do And 'page should have "master" on graph' do
within '.graph' do within '.network-graph' do
page.should have_content 'master' page.should have_content 'master'
end end
end end
...@@ -49,13 +49,13 @@ class ProjectNetworkGraph < Spinach::FeatureSteps ...@@ -49,13 +49,13 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
end end
Then 'page should have content not cotaining "v2.1.0"' do Then 'page should have content not cotaining "v2.1.0"' do
within '.graph' do within '.network-graph' do
page.should have_content 'cleaning' page.should have_content 'cleaning'
end end
end end
Then 'page should not have content not cotaining "v2.1.0"' do Then 'page should not have content not cotaining "v2.1.0"' do
within '.graph' do within '.network-graph' do
page.should_not have_content 'cleaning' page.should_not have_content 'cleaning'
end end
end end
...@@ -69,7 +69,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps ...@@ -69,7 +69,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
end end
And 'page should have "stable" on graph' do And 'page should have "stable" on graph' do
within '.graph' do within '.network-graph' do
page.should have_content 'stable' page.should have_content 'stable'
end end
end end
...@@ -83,7 +83,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps ...@@ -83,7 +83,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
end end
And 'page should have "v2.1.0" on graph' do And 'page should have "v2.1.0" on graph' do
within '.graph' do within '.network-graph' do
page.should have_content 'v2.1.0' page.should have_content 'v2.1.0'
end end
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