# Testing

**URL:** https://discuss.emberjs.com/c/testing/7.md?page=2

[Latest](https://discuss.emberjs.com/latest.md) · [Categories](https://discuss.emberjs.com/categories.md)

**Page:** 3

---

## [Testing - Example Issues?](https://discuss.emberjs.com/t/testing-example-issues/14607)

<div class="topic-metadata">

**Author:** [@rwjblue](https://discuss.emberjs.com/u/rwjblue)\
**Replies:** 34\
**Last updated:** [October 16, 2018, 11:42am UTC](https://discuss.emberjs.com/t/testing-example-issues/14607 "2018-10-16T11:42:56Z")

</div>

I’ll be giving a talk at Ember NYC this upcoming thursday (2018-04-26 meetup details) on the latest and greatest in testing. I plan on including a Q/A type section on “real world examples” and I’d love to have a more ro…

---

## [How to get module option from test command in environment config](https://discuss.emberjs.com/t/how-to-get-module-option-from-test-command-in-environment-config/15540)

<div class="topic-metadata">

**Author:** [@osawyer](https://discuss.emberjs.com/u/osawyer)\
**Replies:** 1\
**Last updated:** [September 24, 2018, 7:16pm UTC](https://discuss.emberjs.com/t/how-to-get-module-option-from-test-command-in-environment-config/15540 "2018-09-24T19:16:03Z")

</div>

When running tests using a command such as ember test --module="Acceptance | example" , how could I capture the module option within the environment.js config file? The aim here is to pass a flag indicating the accep…

---

## [\`waitUntil\` async helper feedback](https://discuss.emberjs.com/t/waituntil-async-helper-feedback/9444)

<div class="topic-metadata">

**Author:** [@ppcano](https://discuss.emberjs.com/u/ppcano)\
**Replies:** 4\
**Last updated:** [September 21, 2018, 5:52am UTC](https://discuss.emberjs.com/t/waituntil-async-helper-feedback/9444 "2018-09-21T05:52:13Z")

</div>

I would like to get some feedback on the use of registerWaiter in an async helper to wait for animated components to appear. In our acceptance tests, the waitUntil helper could be used as: waitUntil('#my-button'); c…

---

## [Examples of running non-fastboot ember tests through heroku CI?](https://discuss.emberjs.com/t/examples-of-running-non-fastboot-ember-tests-through-heroku-ci/15493)

<div class="topic-metadata">

**Author:** [@mattmcmanus](https://discuss.emberjs.com/u/mattmcmanus)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 9:01pm UTC](https://discuss.emberjs.com/t/examples-of-running-non-fastboot-ember-tests-through-heroku-ci/15493 "2018-09-17T21:01:01Z")

</div>

Hey friends, This whole circleci 2 rollout has left a terrible taste in my mouth. I’m also interested in heroku CI’s on demand test runs. Has anyone setup their ember apps to use it? How’s it going? Did you run into any …

---

## ["Could not find module \`htmlbars-inline-precompile\`" on component integration tests in 1.13](https://discuss.emberjs.com/t/could-not-find-module-htmlbars-inline-precompile-on-component-integration-tests-in-1-13/8504)

<div class="topic-metadata">

**Author:** [@lizbaillie](https://discuss.emberjs.com/u/lizbaillie)\
**Replies:** 10\
**Last updated:** [September 15, 2018, 8:05pm UTC](https://discuss.emberjs.com/t/could-not-find-module-htmlbars-inline-precompile-on-component-integration-tests-in-1-13/8504 "2018-09-15T20:05:55Z")

</div>

I’m running ember-cli 1.13.1 and Ember 1.13.5, trying to get my auto-generated component integration tests to pass. My tests are currently failing because “Could not find module htmlbars-inline-precompile” (which is impo…

---

## [How to stub a computed property](https://discuss.emberjs.com/t/how-to-stub-a-computed-property/15474)

<div class="topic-metadata">

**Author:** [@Willibaur](https://discuss.emberjs.com/u/Willibaur)\
**Replies:** 1\
**Last updated:** [September 14, 2018, 12:52pm UTC](https://discuss.emberjs.com/t/how-to-stub-a-computed-property/15474 "2018-09-14T12:52:45Z")

</div>

Hi all, I’m trying to stub the following within a rendering component test breadcrumb: computed('router.\_router.currentPath', function() { const routeName = this.get('router.\_router.currentPath').replace('index.in…

---

## [Can we have a "renderSync()" in ember-test-helpers?](https://discuss.emberjs.com/t/can-we-have-a-rendersync-in-ember-test-helpers/15348)

<div class="topic-metadata">

**Author:** [@vothaison](https://discuss.emberjs.com/u/vothaison)\
**Replies:** 7\
**Last updated:** [August 29, 2018, 4:36am UTC](https://discuss.emberjs.com/t/can-we-have-a-rendersync-in-ember-test-helpers/15348 "2018-08-29T04:36:24Z")

</div>

Probably a dumb question: Can we have a “renderSync()” in ember-test-helpers? (Or, can we make one?) But thanks in advance, everyone!

---

## [Assertion Failed: You have turned on testing mode, which disabled the run-loop's autorun. You will need to wrap any code with asynchronous side-effects in a run](https://discuss.emberjs.com/t/assertion-failed-you-have-turned-on-testing-mode-which-disabled-the-run-loops-autorun-you-will-need-to-wrap-any-code-with-asynchronous-side-effects-in-a-run/12129)

<div class="topic-metadata">

**Author:** [@Olivier\_Avolle](https://discuss.emberjs.com/u/Olivier_Avolle)\
**Replies:** 2\
**Last updated:** [August 24, 2018, 9:42pm UTC](https://discuss.emberjs.com/t/assertion-failed-you-have-turned-on-testing-mode-which-disabled-the-run-loops-autorun-you-will-need-to-wrap-any-code-with-asynchronous-side-effects-in-a-run/12129 "2018-08-24T21:42:37Z")

</div>

Hello, While writing acceptance tests for a webapp, I encountered an issue with ember.run.schedule(). Everytime I visit() an URL in acceptance tests and programatically resize the window,to test an onresize handler whic…

---

## [Database calls with Ember Test](https://discuss.emberjs.com/t/database-calls-with-ember-test/15244)

<div class="topic-metadata">

**Author:** [@HuckleberrryCarignan](https://discuss.emberjs.com/u/HuckleberrryCarignan)\
**Replies:** 3\
**Last updated:** [August 7, 2018, 2:41pm UTC](https://discuss.emberjs.com/t/database-calls-with-ember-test/15244 "2018-08-07T14:41:13Z")

</div>

Can you make DB connections and queries (postgres) within an Ember Test js? Cheers, Huck

---

## [Need Guidance with ember and puppeteer](https://discuss.emberjs.com/t/need-guidance-with-ember-and-puppeteer/15236)

<div class="topic-metadata">

**Author:** [@HuckleberrryCarignan](https://discuss.emberjs.com/u/HuckleberrryCarignan)\
**Replies:** 6\
**Last updated:** [August 6, 2018, 7:59pm UTC](https://discuss.emberjs.com/t/need-guidance-with-ember-and-puppeteer/15236 "2018-08-06T19:59:51Z")

</div>

Hi, I’m a QE attempting to apply a cucumberjs / puppeteer solution. I’m very green when it comes to ember. I can’t seem to page.click on an ember computed properties: \<p class="ao-label" data-test-upload="true"\>Dra…

---

## [Error running acceptance test](https://discuss.emberjs.com/t/error-running-acceptance-test/15166)

<div class="topic-metadata">

**Author:** [@Dahnaya\_Joyner](https://discuss.emberjs.com/u/Dahnaya_Joyner)\
**Replies:** 3\
**Last updated:** [July 23, 2018, 6:30pm UTC](https://discuss.emberjs.com/t/error-running-acceptance-test/15166 "2018-07-23T18:30:57Z")

</div>

I have a registration form and I would like to test it using an acceptance test. When I run 'ember test --filter “acceptance”, I get an error and I’m not sure how to fix it. All of my dependencies are updated which is th…

---

## [What's the difference between ember-cli-qunit and ember-qunit](https://discuss.emberjs.com/t/whats-the-difference-between-ember-cli-qunit-and-ember-qunit/14938)

<div class="topic-metadata">

**Author:** [@mehulkar](https://discuss.emberjs.com/u/mehulkar)\
**Replies:** 3\
**Last updated:** [June 21, 2018, 2:24pm UTC](https://discuss.emberjs.com/t/whats-the-difference-between-ember-cli-qunit-and-ember-qunit/14938 "2018-06-21T14:24:21Z")

</div>

I’m trying to upgrade my test setup to as far as I can get it without upgrading ember itself and it’s the first time I’ve looked at all these addons. It looks like we’re installing ember-cli-qunit, but its code seems to …

---

## [How to test that CSS is being included by an addon](https://discuss.emberjs.com/t/how-to-test-that-css-is-being-included-by-an-addon/14863)

<div class="topic-metadata">

**Author:** [@samselikoff](https://discuss.emberjs.com/u/samselikoff)\
**Replies:** 12\
**Last updated:** [June 13, 2018, 6:43pm UTC](https://discuss.emberjs.com/t/how-to-test-that-css-is-being-included-by-an-addon/14863 "2018-06-13T18:43:00Z")

</div>

I’m trying to add a test to Ember CLI Tailwind that verifies the addon correctly builds tailwind.css and adds it to the host app. Some of our existing tests verify that a vendor css file is included, or that certain JS …

---

## [Running all test files in a folder in --server mode](https://discuss.emberjs.com/t/running-all-test-files-in-a-folder-in-server-mode/14857)

<div class="topic-metadata">

**Author:** [@GregWeb](https://discuss.emberjs.com/u/GregWeb)\
**Replies:** 2\
**Last updated:** [June 8, 2018, 2:07am UTC](https://discuss.emberjs.com/t/running-all-test-files-in-a-folder-in-server-mode/14857 "2018-06-08T02:07:38Z")

</div>

His I have a large page I want to break up into mulitple my-test.js files in the same folder. when I do this and run ember test --filter "my-test-folder" --server it runs and lists both files in the test runner, but pass…

---

## [ESA - mock with Mirage when using implicit grant authentication](https://discuss.emberjs.com/t/esa-mock-with-mirage-when-using-implicit-grant-authentication/14424)

<div class="topic-metadata">

**Author:** [@belgoros](https://discuss.emberjs.com/u/belgoros)\
**Replies:** 6\
**Last updated:** [June 1, 2018, 4:02pm UTC](https://discuss.emberjs.com/t/esa-mock-with-mirage-when-using-implicit-grant-authentication/14424 "2018-06-01T16:02:29Z")

</div>

I’m stuck with a way to mock the authentication with ESA (ember-simple-auth) when using implicit grant authentication. Is there any docs or examples ? Thank you.

---

## [Throw an Error when Mirage route is not defined](https://discuss.emberjs.com/t/throw-an-error-when-mirage-route-is-not-defined/14680)

<div class="topic-metadata">

**Author:** [@mungalmaroti](https://discuss.emberjs.com/u/mungalmaroti)\
**Replies:** 2\
**Last updated:** [May 24, 2018, 8:50pm UTC](https://discuss.emberjs.com/t/throw-an-error-when-mirage-route-is-not-defined/14680 "2018-05-24T20:50:27Z")

</div>

Hi , Please help me regarding how to set the test case for default route . My default port is ‘http://localhost:2300/’ when I create a acceptance test case for dashboard. Than I am getting error that is 'there was no r…

---

## [How do a test promise isFulfilled in integration tests?](https://discuss.emberjs.com/t/how-do-a-test-promise-isfulfilled-in-integration-tests/14809)

<div class="topic-metadata">

**Author:** [@GregWeb](https://discuss.emberjs.com/u/GregWeb)\
**Replies:** 3\
**Last updated:** [May 24, 2018, 4:48pm UTC](https://discuss.emberjs.com/t/how-do-a-test-promise-isfulfilled-in-integration-tests/14809 "2018-05-24T16:48:24Z")

</div>

Hi I’m quite new to promises and definitely promises in Ember. I’m using EMber 2.18 I have a component with the following conditional: {{#if totalAmount.isFulfilled}} \<p data-test-total-amount\>{{numeral-format (if …

---

## [In new testing api when should I use lookup vs register? (mocking/stubbing)](https://discuss.emberjs.com/t/in-new-testing-api-when-should-i-use-lookup-vs-register-mocking-stubbing/14826)

<div class="topic-metadata">

**Author:** [@rondale\_sc](https://discuss.emberjs.com/u/rondale_sc)\
**Replies:** 1\
**Last updated:** [May 24, 2018, 3:11pm UTC](https://discuss.emberjs.com/t/in-new-testing-api-when-should-i-use-lookup-vs-register-mocking-stubbing/14826 "2018-05-24T15:11:30Z")

</div>

In the new testing api when is it appropriate to do: this.owner.lookup('service:foo').someProperty = '123'; vs import Service from '@ember/service'; this.owner.register('service:foo', Service.extend({someProperty: '12…

---

## [How to add wait in ember cli page object testcases](https://discuss.emberjs.com/t/how-to-add-wait-in-ember-cli-page-object-testcases/14746)

<div class="topic-metadata">

**Author:** [@aboli](https://discuss.emberjs.com/u/aboli)\
**Replies:** 5\
**Last updated:** [May 16, 2018, 10:45am UTC](https://discuss.emberjs.com/t/how-to-add-wait-in-ember-cli-page-object-testcases/14746 "2018-05-16T10:45:46Z")

</div>

how to add wait in ember cli page object testcases

---

## [Testing an addon's broccoli trees — issue with broccoli caches](https://discuss.emberjs.com/t/testing-an-addons-broccoli-trees-issue-with-broccoli-caches/14701)

<div class="topic-metadata">

**Author:** [@lennyburdette](https://discuss.emberjs.com/u/lennyburdette)\
**Replies:** 8\
**Last updated:** [May 15, 2018, 2:32pm UTC](https://discuss.emberjs.com/t/testing-an-addons-broccoli-trees-issue-with-broccoli-caches/14701 "2018-05-15T14:32:59Z")

</div>

I’m trying to fix a bug in ember-intl related to engines, and I’d like to write a test that exercises the whole build process. I tried ember-cli-addon-tests, but I had a hard time setting up an engine in the test, and it…

---

## [Reset application after acceptance test](https://discuss.emberjs.com/t/reset-application-after-acceptance-test/14728)

<div class="topic-metadata">

**Author:** [@cga](https://discuss.emberjs.com/u/cga)\
**Replies:** 3\
**Last updated:** [May 10, 2018, 8:38pm UTC](https://discuss.emberjs.com/t/reset-application-after-acceptance-test/14728 "2018-05-10T20:38:26Z")

</div>

Hi there, I try to use ember-simple-auth for a project. Basically, everything works fine. Only with the tests I have an issue: ember-simple-auth extends the beforeModel hook in the application route. So far, so good. N…

---

## [Why does rwjblue like Qunit so much more than Mocha?](https://discuss.emberjs.com/t/why-does-rwjblue-like-qunit-so-much-more-than-mocha/14715)

<div class="topic-metadata">

**Author:** [@yohanmishkin](https://discuss.emberjs.com/u/yohanmishkin)\
**Replies:** 5\
**Last updated:** [May 9, 2018, 3:03pm UTC](https://discuss.emberjs.com/t/why-does-rwjblue-like-qunit-so-much-more-than-mocha/14715 "2018-05-09T15:03:34Z")

</div>

We know rwjblue loves manipulating X12 structures using native Ruby syntax, but do you know why he much prefers Qunit to Mocha?

---

## [Promise rejected before it renders: \_emberCliMirage.default.initialize is not a function](https://discuss.emberjs.com/t/promise-rejected-before-it-renders-emberclimirage-default-initialize-is-not-a-function/14657)

<div class="topic-metadata">

**Author:** [@mungalmaroti](https://discuss.emberjs.com/u/mungalmaroti)\
**Replies:** 5\
**Last updated:** [May 2, 2018, 2:59am UTC](https://discuss.emberjs.com/t/promise-rejected-before-it-renders-emberclimirage-default-initialize-is-not-a-function/14657 "2018-05-02T02:59:23Z")

</div>

Hi Friends, I am stuck how to set Promise in integration test case with ember js . Please let us me. Regards, Maroti

---

## [Replace mirage with real database](https://discuss.emberjs.com/t/replace-mirage-with-real-database/14646)

<div class="topic-metadata">

**Author:** [@ondrejsevcik](https://discuss.emberjs.com/u/ondrejsevcik)\
**Replies:** 2\
**Last updated:** [April 26, 2018, 4:19pm UTC](https://discuss.emberjs.com/t/replace-mirage-with-real-database/14646 "2018-04-26T16:19:39Z")

</div>

Hi, I would like to replace mirage with a real database connection. The problem is setting up test data. I don’t want to create them upfront in the database, because it’s very fragile and tends to get obsolete very fast.…

---

## ["Transition to" redirects away from acceptance test page](https://discuss.emberjs.com/t/transition-to-redirects-away-from-acceptance-test-page/8090)

<div class="topic-metadata">

**Author:** [@krautman](https://discuss.emberjs.com/u/krautman)\
**Replies:** 11\
**Last updated:** [April 17, 2018, 6:16pm UTC](https://discuss.emberjs.com/t/transition-to-redirects-away-from-acceptance-test-page/8090 "2018-04-17T18:16:44Z")

</div>

Hey! I need again your help. I have a web app which uses ember-cli, ember-cli-mocha and ember-simple-auth. Now I wanted to write an acceptance test for the login page. I used the blueprints to generate all the files an…

---

## [Ember router 2.13 deprecation related to \_routerMicrolib issue](https://discuss.emberjs.com/t/ember-router-2-13-deprecation-related-to-routermicrolib-issue/14355)

<div class="topic-metadata">

**Author:** [@emberAr](https://discuss.emberjs.com/u/emberAr)\
**Replies:** 0\
**Last updated:** [March 8, 2018, 1:42am UTC](https://discuss.emberjs.com/t/ember-router-2-13-deprecation-related-to-routermicrolib-issue/14355 "2018-03-08T01:42:59Z")

</div>

Hi, I am an Ember newbie. Working on migration of project from Ember 2.11 to 2.15. After migrating from 2.12 to 2.13, I am running into this issue related to a deprecation of router renamed to \_routerMicrolib (Ember.js…

---

## [Upgrading from Ember 2.11 to Ember 2.12 LTS -- Component Integration Test Issue](https://discuss.emberjs.com/t/upgrading-from-ember-2-11-to-ember-2-12-lts-component-integration-test-issue/14263)

<div class="topic-metadata">

**Author:** [@emberAr](https://discuss.emberjs.com/u/emberAr)\
**Replies:** 2\
**Last updated:** [March 8, 2018, 12:32am UTC](https://discuss.emberjs.com/t/upgrading-from-ember-2-11-to-ember-2-12-lts-component-integration-test-issue/14263 "2018-03-08T00:32:03Z")

</div>

Hi All, I am a newbie in the Ember space, and my first interaction is about upgrading from Ember 2.11 to Ember 2.12 LTS for a big project with around 15000 tests. I have resolved a lot issues including: -. “Attempting …

---

## [Click(a:contains) not working?](https://discuss.emberjs.com/t/click-a-contains-not-working/14337)

<div class="topic-metadata">

**Author:** [@stuartluscombe](https://discuss.emberjs.com/u/stuartluscombe)\
**Replies:** 3\
**Last updated:** [March 5, 2018, 11:19pm UTC](https://discuss.emberjs.com/t/click-a-contains-not-working/14337 "2018-03-05T23:19:25Z")

</div>

In reference to my previous post, \[SOLVED\] Cannot run acceptance tests 'click' helper not defined - #3 by stuartluscombe, I cannot get the click helper to work as: a:contains("Contact")' is not a valid selector I’ve ca…

---

## [\[SOLVED\] Cannot run acceptance tests 'click' helper not defined](https://discuss.emberjs.com/t/solved-cannot-run-acceptance-tests-click-helper-not-defined/14328)

<div class="topic-metadata">

**Author:** [@stuartluscombe](https://discuss.emberjs.com/u/stuartluscombe)\
**Replies:** 3\
**Last updated:** [March 5, 2018, 4:03pm UTC](https://discuss.emberjs.com/t/solved-cannot-run-acceptance-tests-click-helper-not-defined/14328 "2018-03-05T16:03:12Z")

</div>

My issue is very similar to ReferenceError: andThen is not defined in that when trying to follow the emberjs.com tutorial and going through sections on acceptance tests I am getting a problem with a helper method. As wi…

---

## [How simulate "enter" keypress in integration test?](https://discuss.emberjs.com/t/how-simulate-enter-keypress-in-integration-test/13762)

<div class="topic-metadata">

**Author:** [@skitterm](https://discuss.emberjs.com/u/skitterm)\
**Replies:** 4\
**Last updated:** [March 3, 2018, 6:23am UTC](https://discuss.emberjs.com/t/how-simulate-enter-keypress-in-integration-test/13762 "2018-03-03T06:23:08Z")

</div>

I have an input that triggers an action when enter key is pressed. I’ve tried programmatically simulating that event in my integration test but have fallen short.How would I go about doing that? I’ve seen the handy-dand…

[Previous page](https://discuss.emberjs.com/c/testing/7.md?page=1)

[Next page](https://discuss.emberjs.com/c/testing/7.md?page=3)
