diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-02-06 02:12:02 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-02-06 02:12:02 +0300 |
commit | 52434a7034529330e8b5a7ebd0b75992635644c7 (patch) | |
tree | 4d30a6bfe59ec43ca4ec2074fef2e23dade1faaa /spec | |
parent | db35914c61be3d78f5956af51b74546a0b101ca7 (diff) |
Resolve "Update project topics styling to use badges design"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects_spec.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index f7efc3f325c..bc36c6f948f 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -110,16 +110,23 @@ describe 'Project' do it 'shows project topics' do project.update_attribute(:tag_list, 'topic1') + visit path + expect(page).to have_css('.home-panel-topic-list') - expect(page).to have_content('topic1') + expect(page).to have_link('Topic1', href: explore_projects_path(tag: 'topic1')) end it 'shows up to 3 project tags' do project.update_attribute(:tag_list, 'topic1, topic2, topic3, topic4') + visit path + expect(page).to have_css('.home-panel-topic-list') - expect(page).to have_content('topic1, topic2, topic3 + 1 more') + expect(page).to have_link('Topic1', href: explore_projects_path(tag: 'topic1')) + expect(page).to have_link('Topic2', href: explore_projects_path(tag: 'topic2')) + expect(page).to have_link('Topic3', href: explore_projects_path(tag: 'topic3')) + expect(page).to have_content('+ 1 more') end end |