mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
fix spinach features to use new button wordings
Also fixed an accidental deletion of pratial
This commit is contained in:
@@ -11,4 +11,5 @@
|
||||
.btn-group
|
||||
= link_to 'Raw', raw_namespace_project_snippet_path(@project.namespace, @project, @snippet), class: "btn btn-sm", target: "_blank"
|
||||
|
||||
= render 'shared/snippets/blob'
|
||||
%div#notes= render "projects/notes/notes_with_form"
|
||||
|
||||
@@ -30,5 +30,5 @@ Feature: Project Snippets
|
||||
|
||||
Scenario: I destroy "Snippet one"
|
||||
Given I visit snippet page "Snippet one"
|
||||
And I click link "Remove Snippet"
|
||||
And I click link "Delete"
|
||||
Then I should not see "Snippet one" in snippets
|
||||
|
||||
@@ -24,7 +24,7 @@ Feature: Snippets
|
||||
|
||||
Scenario: I destroy "Personal snippet one"
|
||||
Given I visit snippet page "Personal snippet one"
|
||||
And I click link "Destroy"
|
||||
And I click link "Delete"
|
||||
Then I should not see "Personal snippet one" in snippets
|
||||
|
||||
Scenario: I create new internal snippet
|
||||
|
||||
@@ -42,13 +42,13 @@ class Spinach::Features::ProjectSnippets < Spinach::FeatureSteps
|
||||
end
|
||||
|
||||
step 'I click link "Edit"' do
|
||||
page.within ".file-title" do
|
||||
page.within ".page-title" do
|
||||
click_link "Edit"
|
||||
end
|
||||
end
|
||||
|
||||
step 'I click link "Remove Snippet"' do
|
||||
click_link "remove"
|
||||
step 'I click link "Delete"' do
|
||||
click_link "Delete"
|
||||
end
|
||||
|
||||
step 'I submit new snippet "Snippet three"' do
|
||||
|
||||
@@ -13,13 +13,13 @@ class Spinach::Features::Snippets < Spinach::FeatureSteps
|
||||
end
|
||||
|
||||
step 'I click link "Edit"' do
|
||||
page.within ".file-title" do
|
||||
page.within ".page-title" do
|
||||
click_link "Edit"
|
||||
end
|
||||
end
|
||||
|
||||
step 'I click link "Destroy"' do
|
||||
click_link "remove"
|
||||
step 'I click link "Delete"' do
|
||||
click_link "Delete"
|
||||
end
|
||||
|
||||
step 'I submit new snippet "Personal snippet three"' do
|
||||
|
||||
Reference in New Issue
Block a user