From 215d98003307ab4dc9fcae7f07ddbc5594f1889b Mon Sep 17 00:00:00 2001 From: jelhan Date: Thu, 7 Mar 2019 23:11:03 +0100 Subject: [PATCH] run tests against Firefox in CI (#168) * run tests against Firefox in CI * fix test for Firefox 56 --- testem.js | 11 +++++++++-- .../components/create-options-datetime-test.js | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/testem.js b/testem.js index 1beec48..1e840ca 100644 --- a/testem.js +++ b/testem.js @@ -2,7 +2,8 @@ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, launch_in_ci: [ - 'Chrome' + 'Chrome', + 'Firefox', ], launch_in_dev: [ 'Chrome' @@ -20,7 +21,13 @@ module.exports = { '--remote-debugging-port=0', '--window-size=1440,900' ].filter(Boolean) - } + }, + Firefox: { + ci: [ + '--headless', + '--window-size=1440,900', + ] + }, }, proxies: { '/': { diff --git a/tests/integration/components/create-options-datetime-test.js b/tests/integration/components/create-options-datetime-test.js index d6b4971..f0fab5e 100644 --- a/tests/integration/components/create-options-datetime-test.js +++ b/tests/integration/components/create-options-datetime-test.js @@ -4,6 +4,7 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render, + blur, click, fillIn, find, @@ -323,6 +324,7 @@ module('Integration | Component | create options datetime', function(hooks) { ); await fillIn('[data-test-day="2015-01-01"] .form-group input', '10:'); + await blur('[data-test-day="2015-01-01"] .form-group input'); assert.ok( find('[data-test-day="2015-01-01"] .form-group').classList.contains('has-error') || // browsers with input type time support prevent non time input