diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 14:01:45 +0300 |
commit | 9297025d0b7ddf095eb618dfaaab2ff8f2018d8b (patch) | |
tree | 865198c01d1824a9b098127baa3ab980c9cd2c06 /spec/features/projects/branches/download_buttons_spec.rb | |
parent | 6372471f43ee03c05a7c1f8b0c6ac6b8a7431dbe (diff) |
Add latest changes from gitlab-org/gitlab@16-7-stable-eev16.7.0-rc42
Diffstat (limited to 'spec/features/projects/branches/download_buttons_spec.rb')
-rw-r--r-- | spec/features/projects/branches/download_buttons_spec.rb | 9 |
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 |