test/features/shared/resource/new_test.rb in adminpanel-3.0.0 vs test/features/shared/resource/new_test.rb in adminpanel-3.1.0

- old
+ new

@@ -20,19 +20,20 @@ fill_in 'product_price', with: '855.5' page.execute_script( %Q( - $('#product_description').data('wysihtml5').editor.setValue('que pepsi'); + var editor = $('#description-trix-editor')[0].editor; + editor.insertString("Que pepsi"); ) ) # to fill the wysiwyg editor click_button('Agregar Producto') 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 + assert_equal '<div>Que pepsi</div>', saved_product.description end protected def visit_adminpanel_new_product_path visit adminpanel.signin_path