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

- old
+ new

@@ -8,16 +8,19 @@ def test_shared_new_page_messages assert_button(I18n.t('action.add', resource: Adminpanel::Product.display_name)) end def test_submitting_with_invalid_information + sleep 0.2 click_button('Agregar Producto') assert_content('Producto no pudo guardarse debido a 3 errores') end def test_submitting_with_valid_information - fill_in 'product_name', :with => 'product name' - fill_in 'product_price', :with => '855.5' + fill_in 'product_name', with: 'product name' + fill_in 'product_price', with: '855.5' + + page.execute_script( %Q( $('#product_description').data('wysihtml5').editor.setValue('que pepsi'); ) ) # to fill the wysiwyg editor