From ec9917a9af2174d4dee93ea98e53e12f834086de Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Thu, 5 Nov 2020 15:09:52 -0500 Subject: [PATCH] Update post_test.rb --- test/system/post_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/system/post_test.rb b/test/system/post_test.rb index 8f0fd7dc6f..afd0ac0536 100644 --- a/test/system/post_test.rb +++ b/test/system/post_test.rb @@ -40,7 +40,7 @@ def setup find('.tag-input').set('mountains').native.send_keys(:return) # Make sure that the 2 tags are added - page.assert_selector('.tags-list p.badge', :count => 2) + page.assert_selector('.tags-list .card', :count => 2) end test 'removing tags from the post' do @@ -50,15 +50,15 @@ def setup # There should be 0 tags that shows up as a badge and 3 as a card # TODO: adjust these to check for buttons in cards (should be 2) and grey cards (none until we have power tags in the test) - page.assert_selector('.tags-list .card-body', count: 3) - page.assert_selector('.tags-list p.badge', count: 0) + page.assert_selector('.tags-list .card', count: 3) + page.assert_selector('.tags-list .card', count: 0) accept_alert do - find('.tags-list p.badge .tag-delete').click() + find('.tags-list .card-body .tag-delete').click() end # Make sure that 1 of the 3 tags is removed - page.assert_selector('.tags-list p.badge', :count => 0) + page.assert_selector('.tags-list .card-body', :count => 0) end test 'like button on the post' do @@ -207,8 +207,8 @@ def assert_page_does_not_reload(message = "page should not reload") 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") - assert_selector('.tags-list .badge a[href="/tag/lon:76"]', text: "lon:76") + assert_selector('.tags-list .card-body a[href="/tag/lat:22"]', text: "lat:22") + assert_selector('.tags-list .card-body a[href="/tag/lon:76"]', text: "lon:76") end test 'deleting a wiki' do