diff options
Diffstat (limited to 'spec/features/projects/branches/user_views_branches_spec.rb')
-rw-r--r-- | spec/features/projects/branches/user_views_branches_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/projects/branches/user_views_branches_spec.rb b/spec/features/projects/branches/user_views_branches_spec.rb index 52327cc6543..e396455b371 100644 --- a/spec/features/projects/branches/user_views_branches_spec.rb +++ b/spec/features/projects/branches/user_views_branches_spec.rb @@ -29,6 +29,10 @@ RSpec.describe "User views branches", :js, feature_category: :groups_and_project it "does not show the \"More actions\" dropdown" do expect(page).not_to have_selector('[data-testid="branch-more-actions"]') end + + it "passes axe automated accessibility testing" do + expect(page).to be_axe_clean.within('#content-body') + end end describe 'non-default branch' do @@ -45,6 +49,10 @@ RSpec.describe "User views branches", :js, feature_category: :groups_and_project it "shows the \"More actions\" dropdown" do expect(page).to have_button('More actions') end + + it "passes axe automated accessibility testing" do + expect(page).to be_axe_clean.within('#content-body') + end end end |