-
-
Save sanjibukai/c677a8e2db53d44fd6558b8b90a9dfb8 to your computer and use it in GitHub Desktop.
System test to test correct react display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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