diff options
author | Phil Hughes <me@iamphill.com> | 2016-05-19 10:01:27 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-19 10:01:27 +0100 |
commit | d53bfcb0bb320d0f182ba7967dba7be3be4e3280 (patch) | |
tree | 940bd3edd6c3e26aaf6a7ae9af20f4d1ff0ccbb6 /features | |
parent | da5f0b9119d4f8c911db30557a04d14ff7406e5f (diff) | |
download | gitlab-ce-d53bfcb0bb320d0f182ba7967dba7be3be4e3280.tar.gz |
Updated snippets testssnippets-ui
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/project/snippets.rb | 4 | ||||
-rw-r--r-- | features/steps/snippets/snippets.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/features/steps/project/snippets.rb b/features/steps/project/snippets.rb index 786a0cad975..beb8ecfc799 100644 --- a/features/steps/project/snippets.rb +++ b/features/steps/project/snippets.rb @@ -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 diff --git a/features/steps/snippets/snippets.rb b/features/steps/snippets/snippets.rb index 023032e679f..19366b11071 100644 --- a/features/steps/snippets/snippets.rb +++ b/features/steps/snippets/snippets.rb @@ -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 |