Skip to content

Commit

Permalink
Update post_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Oct 27, 2020
1 parent 918b609 commit 4d5326d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/system/post_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ def setup

find('a#tags-open').click()

# There should be 1 tag that shows up as a badge and 2 as a card
page.assert_selector('.tags-list .card-body', :count => 2)
page.assert_selector('.tags-list p.badge', :count => 1)
# 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)

accept_alert do
find('.tags-list p.badge .tag-delete').click()
Expand Down

0 comments on commit 4d5326d

Please sign in to comment.