From 0bf8898f30b7c221af2229c5e4249429b5f7f562 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Thu, 26 Mar 2020 03:58:59 +0200 Subject: [PATCH] Try something for cirlce --- .circleci/config.yml | 2 +- spec/support/features/form_helpers.rb | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8752594..42b3e79 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -102,7 +102,7 @@ jobs: command: dockerize -wait tcp://localhost:3306 -timeout 1m - run: name: Database setup - command: bundle exec rails db:schema:load --trace + command: bundle exec rake db:test:prepare --trace # Run rspec in parallel # ./cc-test-reporter before-build # ./cc-test-reporter after-build --coverage-input-type clover --exit-code $? diff --git a/spec/support/features/form_helpers.rb b/spec/support/features/form_helpers.rb index 7c5c55b..d31b89d 100755 --- a/spec/support/features/form_helpers.rb +++ b/spec/support/features/form_helpers.rb @@ -6,8 +6,9 @@ module Features end end - def fill_tinymce(element, contents) - page.execute_script("tinymce.get('#{element}').setContent('#{contents}')") + def fill_tinymce(element = first, contents) + page.execute_script("tinymce.editors[0].setContent('#{contents}')") + # page.execute_script("tinymce.get('#{element}').setContent('#{contents}')") end def submit(model, action)