summaryrefslogtreecommitdiff
path: root/spec/features/projects/tags/user_edits_tags_spec.rb
diff options
context:
space:
mode:
authorJohn Skarbek <jskarbek@gitlab.com>2019-12-10 21:23:23 +0000
committerJohn Skarbek <jskarbek@gitlab.com>2019-12-10 21:23:23 +0000
commit15ca17330ff7eea26f06b0765c739ec2b1d6a221 (patch)
tree5b23463cdfc31a0d209e4f52631d5b44dc105125 /spec/features/projects/tags/user_edits_tags_spec.rb
parentfff92356df7b8bab1d5dd424fb1d9127ce5908cb (diff)
parent875ffafe9ddca59f91c89e1e116f7a7cf41a483c (diff)
downloadgitlab-ce-15ca17330ff7eea26f06b0765c739ec2b1d6a221.tar.gz
Merge branch '12-0-reliable-fetch-backport' into '12-0-stable'
Backport Reliable fetcher to 12.0 See merge request gitlab/gitlabhq!3583
Diffstat (limited to 'spec/features/projects/tags/user_edits_tags_spec.rb')
-rw-r--r--spec/features/projects/tags/user_edits_tags_spec.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/spec/features/projects/tags/user_edits_tags_spec.rb b/spec/features/projects/tags/user_edits_tags_spec.rb
index ebb2844d17f..7a0945d7393 100644
--- a/spec/features/projects/tags/user_edits_tags_spec.rb
+++ b/spec/features/projects/tags/user_edits_tags_spec.rb
@@ -21,23 +21,21 @@ describe 'Project > Tags', :js do
context 'page with tags list' do
it 'shows tag name' do
- page.within first('.tags > .content-list > li') do
- expect(page.find('.row-main-content')).to have_content 'v1.1.0 Version 1.1.0'
- end
+ expect(page).to have_content 'v1.1.0 Version 1.1.0'
end
it 'shows tag edit button' do
- page.within first('.tags > .content-list > li') do
- edit_btn = page.find('.row-fixed-content.controls a.btn-edit')
+ page.within '.tags > .content-list' do
+ edit_btn = page.find("li > .row-fixed-content.controls a.btn-edit[href='/#{project.full_path}/-/tags/v1.1.0/release/edit']")
- expect(edit_btn['href']).to have_content '/tags/v1.1.0/release/edit'
+ expect(edit_btn['href']).to end_with("/#{project.full_path}/-/tags/v1.1.0/release/edit")
end
end
end
context 'edit tag release notes' do
before do
- find('.tags > .content-list > li:first-child .row-fixed-content.controls a.btn-edit').click
+ page.find("li > .row-fixed-content.controls a.btn-edit[href='/#{project.full_path}/-/tags/v1.1.0/release/edit']").click
end
it 'shows tag name header' do