diff --git a/app/views/projects/protected_branches/index.html.haml b/app/views/projects/protected_branches/index.html.haml index 4fbda5b9158..9cadb6fb126 100644 --- a/app/views/projects/protected_branches/index.html.haml +++ b/app/views/projects/protected_branches/index.html.haml @@ -27,7 +27,7 @@ = f.submit 'Protect', class: "btn-create btn" - unless @branches.empty? %h5 Already Protected: - %ul.bordered-list + %ul.bordered-list.protected-branches-list - @branches.each do |branch| %li %h4 diff --git a/features/steps/project/project_browse_branches.rb b/features/steps/project/project_browse_branches.rb index 24939d2ab4f..e77825411f3 100644 --- a/features/steps/project/project_browse_branches.rb +++ b/features/steps/project/project_browse_branches.rb @@ -22,7 +22,7 @@ class ProjectBrowseBranches < Spinach::FeatureSteps end Then 'I should see "Shop" protected branches list' do - within "table" do + within ".protected-branches-list" do page.should have_content "stable" page.should_not have_content "master" end