From 61e90d58c06198774af4f0e70e417e69f55af188 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Wed, 18 Mar 2020 23:01:15 +0200 Subject: [PATCH] Fix tinymce in test --- spec/support/features/form_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/features/form_helpers.rb b/spec/support/features/form_helpers.rb index 671bbad..7c5c55b 100755 --- a/spec/support/features/form_helpers.rb +++ b/spec/support/features/form_helpers.rb @@ -7,7 +7,7 @@ module Features end def fill_tinymce(element, contents) - page.execute_script("$('#{element}').tinymce().setContent('#{contents}')") + page.execute_script("tinymce.get('#{element}').setContent('#{contents}')") end def submit(model, action)