Merge pull request #7863 from cirosantilli/rm-blob-link-to-button
Transform remove blob link into button.
This commit is contained in:
commit
f84772875e
2 changed files with 3 additions and 2 deletions
|
@ -23,5 +23,6 @@
|
|||
tree_join(@commit.sha, @path)), class: 'btn btn-small'
|
||||
|
||||
- if allowed_tree_edit?
|
||||
= link_to '#modal-remove-blob', class: "remove-blob btn btn-small btn-remove", "data-toggle" => "modal" do
|
||||
= button_tag class: 'remove-blob btn btn-small btn-remove',
|
||||
'data-toggle' => 'modal', 'data-target' => '#modal-remove-blob' do
|
||||
Remove
|
||||
|
|
|
@ -78,7 +78,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I click on "Remove"' do
|
||||
click_link 'Remove'
|
||||
click_button 'Remove'
|
||||
end
|
||||
|
||||
step 'I click on "Remove file"' do
|
||||
|
|
Loading…
Reference in a new issue