merged/test/integration/cards_test.rb

29 lines
564 B
Ruby

require "test_helper"
class CardsTest < ActionDispatch::IntegrationTest
include Devise::Test::IntegrationHelpers # Rails >= 5
def go_edit
visit "/merged/sections/11"
find_link("View and Edit Cards").click
end
def test_edit_is
go_edit
assert_equal page.current_path , "/merged/sections/11/cards"
end
def test_update
go_edit
within("#card_6") do
find_button("Update" , match: :first).click
end
end
def _test_update
go_edit
within(".content_update") do
find_button("Update").click
end
end
end