Updated snippets tests

This commit is contained in:
Phil Hughes 2016-05-19 10:01:27 +01:00
parent da5f0b9119
commit d53bfcb0bb
2 changed files with 4 additions and 4 deletions

View file

@ -43,12 +43,12 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
step 'I click link "Edit"' do
page.within ".detail-page-header" do
click_link "Edit"
first(:link, "Edit").click
end
end
step 'I click link "Delete"' do
click_link "Delete"
first(:link, "Delete").click
end
step 'I submit new snippet "Snippet three"' do

View file

@ -14,12 +14,12 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
step 'I click link "Edit"' do
page.within ".detail-page-header" do
click_link "Edit"
first(:link, "Edit").click
end
end
step 'I click link "Delete"' do
click_link "Delete"
first(:link, "Delete").click
end
step 'I submit new snippet "Personal snippet three"' do