Skip to content
Snippets Groups Projects
Commit 50c2efea authored by Robert Schilling's avatar Robert Schilling
Browse files

don't lookup branch element - it might need to be escaped

parent 27cf081e
Branches
Tags
Loading
:plain
$(".js-branch-#{@branch_name}").remove();
$('.js-totalbranch-count').html("#{@repository.branches.size}")
Loading
Loading
@@ -17,3 +17,9 @@ Feature: Project Browse branches
And I click new branch link
When I submit new branch form
Then I should see new branch created
@javascript
Scenario: I delete a branch
Given I visit project branches page
And I click branch 'improve/awesome' delete link
Then I should not see branch 'improve/awesome'
Loading
Loading
@@ -43,4 +43,15 @@ class ProjectBrowseBranches < Spinach::FeatureSteps
page.should have_content 'deploy_keys'
end
end
step "I click branch 'improve/awesome' delete link" do
within '.js-branch-improve\/awesome' do
find('.btn-remove').click
sleep 0.05
end
end
step "I should not see branch 'improve/awesome'" do
page.all(visible: true).should_not have_content 'improve/awesome'
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment