Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/branches/download_buttons_spec.rb')
-rw-r--r--spec/features/projects/branches/download_buttons_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/features/projects/branches/download_buttons_spec.rb b/spec/features/projects/branches/download_buttons_spec.rb
index a888b5b977d..89d9cfff1e0 100644
--- a/spec/features/projects/branches/download_buttons_spec.rb
+++ b/spec/features/projects/branches/download_buttons_spec.rb
@@ -40,15 +40,14 @@ RSpec.describe 'Download buttons in branches page', feature_category: :groups_an
let(:path_to_visit) { project_branches_filtered_path(project, state: 'all', search: ref) }
end
- context 'with artifacts' do
+ context 'with download source code button' do
before do
visit project_branches_filtered_path(project, state: 'all', search: 'binary-encoding')
end
- it 'shows download artifacts button' do
- href = latest_succeeded_project_artifacts_path(project, 'binary-encoding/download', job: 'build')
-
- expect(page).to have_link build.name, href: href
+ it 'passes axe automated accessibility testing', :js do
+ find_by_testid('download-source-code-button').click
+ expect(page).to be_axe_clean.within('.project-action-button')
end
end
end