Skip to content

Commit

Permalink
textarea#text-input
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed May 22, 2019
1 parent 896f5ca commit 9b42cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/system/comment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ def setup
#within('comment-form') do
#end

assert_selector('textarea#textinput', text: '![](/some/imageid.png)')
assert_selector('textarea#text-input', text: '![](/some/imageid.png)')

# click_button 'Preview'
# assert_equal 1, page.evaluate_script("$('.comment-form div#preview').is(':visible')")

click_button 'Publish'

assert_selector('.comment-form textarea#textinput', text: '')
assert_selector('.comment-form textarea#text-input', text: '')

# assert some javascript:
# assert_equal 1, page.evaluate_script("$('.typeahead.dropdown-menu').find('li').length")
Expand Down

0 comments on commit 9b42cac

Please sign in to comment.