Try something for cirlce

This commit is contained in:
Ari Timonen 2020-03-26 03:58:59 +02:00
parent 00354fe6b3
commit 0bf8898f30
2 changed files with 4 additions and 3 deletions

View file

@ -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 $?

View file

@ -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)