From e4a0bbf9d9c303a985ecaa83e4bda1b5431f937c Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Tue, 22 Sep 2020 16:48:56 -0400 Subject: [PATCH] =?UTF-8?q?remove=20show=20more=20tags=20in=20favor=20of?= =?UTF-8?q?=20add=20tags=20now=20that=20both=20buttons=20do=20t=E2=80=A6?= =?UTF-8?q?=20(#8400)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove show more tags in favor of add tags now that both buttons do the same thing follow-up to #8386 * tooltip * Update _tagging.html.erb * Update post_test.rb * Update post_test.rb * Update _tagging.html.erb * try classname instead of id * switch to a#tags-open * re-show tags input on profile pages --- app/views/tag/_tagging.html.erb | 15 ++++++++------- app/views/tag/_tags.html.erb | 15 --------------- test/system/post_test.rb | 4 +++- 3 files changed, 11 insertions(+), 23 deletions(-) diff --git a/app/views/tag/_tagging.html.erb b/app/views/tag/_tagging.html.erb index 2696043023..0763f69272 100644 --- a/app/views/tag/_tagging.html.erb +++ b/app/views/tag/_tagging.html.erb @@ -21,7 +21,7 @@ - <% elsif tag.class == UserTag && (tag.name[0..4] != "oauth" || (logged_in_as(['admin', 'moderator']) || (current_user && current_user.uid == tag.uid))) %>
  • diff --git a/test/system/post_test.rb b/test/system/post_test.rb index bc0e4605a6..f51ad8056a 100644 --- a/test/system/post_test.rb +++ b/test/system/post_test.rb @@ -201,7 +201,9 @@ def assert_page_does_not_reload(message = "page should not reload") # Wait for the location to be added wait_for_ajax - find('.tags-list a.show-more-tags').click() + + # there should also be a page reload now, because we want to reload to see the sidebar mini-map + find('a#tags-open').click() # Make sure proper latitude and longitude tags are added assert_selector('.tags-list .badge a[href="/tag/lat:22"]', text: "lat:22")