diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-29 12:09:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-29 12:09:48 +0300 |
commit | 7510fe06eba02c3cee247f8ceb4ee6f6a4de54f6 (patch) | |
tree | 95025711e64d000172e47209bfdc1d7cd7d6b972 /spec/features/topic_show_spec.rb | |
parent | 401607eed7e0918553e985e1f12e99dc1ff9e948 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/topic_show_spec.rb')
-rw-r--r-- | spec/features/topic_show_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/topic_show_spec.rb b/spec/features/topic_show_spec.rb index 3a9865a6503..196fc34e3ea 100644 --- a/spec/features/topic_show_spec.rb +++ b/spec/features/topic_show_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' RSpec.describe 'Topic show page' do - let_it_be(:topic) { create(:topic, name: 'my-topic', description: 'This is **my** topic https://google.com/ :poop: ```\ncode\n```', avatar: fixture_file_upload("spec/fixtures/dk.png", "image/png")) } + let_it_be(:topic) { create(:topic, name: 'my-topic', title: 'My Topic', description: 'This is **my** topic https://google.com/ :poop: ```\ncode\n```', avatar: fixture_file_upload("spec/fixtures/dk.png", "image/png")) } context 'when topic does not exist' do let(:path) { topic_explore_projects_path(topic_name: 'non-existing') } @@ -20,8 +20,9 @@ RSpec.describe 'Topic show page' do visit topic_explore_projects_path(topic_name: topic.name) end - it 'shows name, avatar and description as markdown' do - expect(page).to have_content(topic.name) + it 'shows title, avatar and description as markdown' do + expect(page).to have_content(topic.title) + expect(page).not_to have_content(topic.name) expect(page).to have_selector('.avatar-container > img.topic-avatar') expect(find('.topic-description')).to have_selector('p > strong') expect(find('.topic-description')).to have_selector('p > a[rel]') |