Skip to content
Snippets Groups Projects
Commit 094de17e authored by Phil Hughes's avatar Phil Hughes
Browse files

spec fixes

parent 632b2482
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -47,7 +47,7 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
end
 
step 'I click new milestone button' do
page.within('.breadcrumbs') do
page.within('.nav-controls') do
click_link "New milestone"
end
end
Loading
Loading
Loading
Loading
@@ -62,7 +62,7 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
end
 
step 'I click link "New issue"' do
page.within '.breadcrumbs' do
page.within '.nav-controls' do
page.has_link?('New Issue') ? click_link('New Issue') : click_link('New issue')
end
end
Loading
Loading
Loading
Loading
@@ -16,7 +16,7 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps
end
 
step 'I click link "New Milestone"' do
page.within('.breadcrumbs') do
page.within('.nav-controls') do
click_link "New milestone"
end
end
Loading
Loading
Loading
Loading
@@ -14,7 +14,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
 
step 'I click link "New Merge Request"' do
page.within '.breadcrumbs' do
page.within '.nav-controls' do
page.has_link?('New Merge Request') ? click_link("New Merge Request") : click_link('New merge request')
end
end
Loading
Loading
Loading
Loading
@@ -23,7 +23,7 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
end
 
step 'I click link "New snippet"' do
page.within '.breadcrumbs' do
page.within '.nav-controls' do
first(:link, "New snippet").click
end
end
Loading
Loading
Loading
Loading
@@ -50,7 +50,7 @@ feature 'Dashboard Issues filtering', :js do
it 'updates atom feed link' do
visit_issues(milestone_title: '', assignee_id: user.id)
 
link = find('.breadcrumbs a[title="Subscribe"]')
link = find('.nav-controls a[title="Subscribe"]')
params = CGI.parse(URI.parse(link[:href]).query)
auto_discovery_link = find('link[type="application/atom+xml"]', visible: false)
auto_discovery_params = CGI.parse(URI.parse(auto_discovery_link[:href]).query)
Loading
Loading
Loading
Loading
@@ -577,7 +577,7 @@ describe 'Issues' do
it 'redirects to signin then back to new issue after signin' do
visit project_issues_path(project)
 
page.within '.breadcrumbs' do
page.within '.nav-controls' do
click_link 'New issue'
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment