Sha256: 77dfc2c159a4fe7bc7f27b1b1ab84108d77e6b1c3b45068527dd19c05c501ef4
Contents?: true
Size: 1.04 KB
Versions: 11
Compression:
Stored size: 1.04 KB
Contents
require 'test_helper' require 'adminpanel/product' require 'adminpanel/category' class HasManyThroughNonCategoryModalTest < ViewCase setup :visit_adminpanel_new_department_path teardown :teardown def test_add_remote_product_link_exist assert_link('Agregar Producto') end def test_adding_a_remote_product_with_invalid_information trigger_modal 'Agregar Producto' assert_equal 'Agregar Producto', find('#modal-title').text submit_modal 'Agregar Producto' assert_content( I18n.t('errors', model: 'Producto', count: 3) ) end def test_adding_a_remote_product_with_valid_information trigger_modal 'Agregar Producto' fill_in 'product_name', with: 'remote checkbox of product' fill_in 'product_description', with: 'remote description lorem' fill_in 'product_price', with: '12.3' submit_modal 'Agregar Producto' assert_content('remote checkbox of product') end private def visit_adminpanel_new_department_path visit adminpanel.signin_path login visit adminpanel.new_department_path end end
Version data entries
11 entries across 11 versions & 1 rubygems