Skip to content

Instantly share code, notes, and snippets.

@sanjibukai
Created June 24, 2017 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanjibukai/c677a8e2db53d44fd6558b8b90a9dfb8 to your computer and use it in GitHub Desktop.
Save sanjibukai/c677a8e2db53d44fd6558b8b90a9dfb8 to your computer and use it in GitHub Desktop.
System test to test correct react display
require "application_system_test_case"
class OrdersTest < ApplicationSystemTestCase
test "cancel post" do
setup_remote
visit post_index_url
first('.entry').click_on 'Add Post'
fill_in 'Post_name', with: 'My Post'
fill_in 'Post_content', with: 'A great post!'
assert_no_selector "meme"
select 'Fun', from: 'category'
assert_selector "meme"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment