diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-14 15:15:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-14 15:15:22 +0000 |
commit | cdb41961fd2bc233d36c5b30f89d087c2efa9818 (patch) | |
tree | 9903f8054fc1f8681c670984a680b768d139a251 /spec/features/projects/releases | |
parent | 8a5138ed7d38ccff8b5ca2fe0f7bbb77f8fdaad3 (diff) | |
download | gitlab-ce-cdb41961fd2bc233d36c5b30f89d087c2efa9818.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/releases')
-rw-r--r-- | spec/features/projects/releases/user_creates_release_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/releases/user_creates_release_spec.rb b/spec/features/projects/releases/user_creates_release_spec.rb index 21d381a3928..c282067f3ad 100644 --- a/spec/features/projects/releases/user_creates_release_spec.rb +++ b/spec/features/projects/releases/user_creates_release_spec.rb @@ -36,6 +36,7 @@ RSpec.describe 'User creates release', :js, feature_category: :continuous_delive it 'defaults the "Create from" dropdown to the project\'s default branch' do select_new_tag_name(tag_name) + expect(page).to have_button(project.default_branch) expect(page.find('[data-testid="create-from-field"] .ref-selector button')).to have_content(project.default_branch) end @@ -123,13 +124,12 @@ RSpec.describe 'User creates release', :js, feature_category: :continuous_delive let(:new_page_url) { new_project_release_path(project, tag_name: 'v1.1.0') } it 'creates release with preselected tag' do - page.within '[data-testid="tag-name-field"]' do - expect(page).to have_text('v1.1.0') - end + expect(page).to have_button 'v1.1.0' + + open_tag_popover 'v1.1.0' expect(page).not_to have_selector('[data-testid="create-from-field"]') - fill_release_title("test release") click_button('Create release') wait_for_all_requests |