test/features/shared/resource/new_test.rb in adminpanel-2.2.5 vs test/features/shared/resource/new_test.rb in adminpanel-2.3.0

- old
+ new

@@ -4,11 +4,11 @@ setup :visit_adminpanel_new_product_path teardown :teardown def test_shared_new_page_messages - assert_button("#{I18n.t('action.add')} #{Adminpanel::Product.display_name}") + assert_button(I18n.t('action.add', resource: Adminpanel::Product.display_name)) end def test_submitting_with_invalid_information click_button('Agregar Producto') assert_content('Producto no pudo guardarse debido a 3 errores') @@ -21,10 +21,11 @@ %Q( $('#product_description').data('wysihtml5').editor.setValue('que pepsi'); ) ) # to fill the wysiwyg editor click_button('Agregar Producto') - assert_content(I18n.t('action.save_success')) + assert_content('product name') + assert_content('855.5') saved_product = Adminpanel::Product.last assert_equal 'product name', saved_product.name assert_equal '855.5', saved_product.price assert_equal 'que pepsi', saved_product.description end