Skip to content
Snippets Groups Projects
Commit 45e11d95 authored by Han Loong Liauw's avatar Han Loong Liauw
Browse files

fix spinach features to use new button wordings

Also fixed an accidental deletion of pratial
parent f7ed469e
No related branches found
No related tags found
2 merge requests!1637Update style of snippets pages,!1567Adds modified date to snippets#show #1767
Loading
Loading
@@ -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"
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment