diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /spec/features/topic_show_spec.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
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]') |