summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/project/project_browse_commits.rb2
-rw-r--r--features/steps/project/project_snippets.rb2
-rw-r--r--features/steps/snippets/snippets.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/project/project_browse_commits.rb b/features/steps/project/project_browse_commits.rb
index 95d30727405..71f4bd79f7e 100644
--- a/features/steps/project/project_browse_commits.rb
+++ b/features/steps/project/project_browse_commits.rb
@@ -48,7 +48,7 @@ class ProjectBrowseCommits < Spinach::FeatureSteps
page.should have_selector('ul.breadcrumb span.divider', count: 3)
page.should have_selector('ul.breadcrumb a', count: 4)
- find('ul.breadcrumb li:first a')['href'].should match(/#{@project.path_with_namespace}\/commits\/master\z/)
+ find('ul.breadcrumb li:nth-child(2) a')['href'].should match(/#{@project.path_with_namespace}\/commits\/master\z/)
find('ul.breadcrumb li:last a')['href'].should match(%r{master/app/models/project\.rb\z})
end
diff --git a/features/steps/project/project_snippets.rb b/features/steps/project/project_snippets.rb
index 2634ea192bf..d3904599ce1 100644
--- a/features/steps/project/project_snippets.rb
+++ b/features/steps/project/project_snippets.rb
@@ -42,7 +42,7 @@ class ProjectSnippets < Spinach::FeatureSteps
end
And 'I click link "Edit"' do
- within ".file_title" do
+ within ".file-title" do
click_link "Edit"
end
end
diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb
index 1fac8d0f988..d21ce9334e7 100644
--- a/features/steps/snippets/snippets.rb
+++ b/features/steps/snippets/snippets.rb
@@ -13,7 +13,7 @@ class SnippetsFeature < Spinach::FeatureSteps
end
And 'I click link "Edit"' do
- within ".file_title" do
+ within ".file-title" do
click_link "Edit"
end
end