Questions tagged [ember-qunit]

Unit test helpers for Ember applications.

Ember-qunit is a tool design to enhance the ability to write unit tests for Ember applications.

Ember QUnit uses your application's resolver to find and automatically create test subjects for you with the moduleFor and test helpers.

See more:

160 questions
0
votes
1 answer

TypeError: Cannot read property 'apply' of undefined, using javascript apply in tests?

Is there limitations with using apply (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply) in qunit tests? import { moduleForModel, test } from 'ember-qunit'; moduleForModel('enterprise', 'Enterprise…
flylib
  • 1,128
  • 2
  • 10
  • 17
0
votes
0 answers

Import { module } from 'ember-qunit'

Looking over the Ember CLI docs, it says to create an integration test like so: import Ember from "ember"; import { module, test } from 'ember-qunit'; import startApp from '../helpers/start-app'; var App; module('An Integration test', { …
nullnullnull
  • 8,039
  • 12
  • 55
  • 107
0
votes
1 answer

Component Not Rendering Correctly During Test

I'm writing integration tests for my Ember CLI app, and one of my tests fails every time. This is my current test: // tests/integration/project-test.js test('displays "Projects" when the user views a project from Collaborate', function() { …
NJP
  • 815
  • 1
  • 7
  • 20
0
votes
1 answer

Ember-qunit unit test helpers: how do they work now?

Up until recently I was including the file... https://raw.githubusercontent.com/rwjblue/ember-qunit-builds/master/dist/globals/main.js ...in a 'TestRunner' page which I would open to run all of my Ember unit tests. All was great. A few days ago,…
sammy34
  • 5,312
  • 5
  • 29
  • 42
0
votes
2 answers

ember-cli unit test - controller opens bootstrap modal

Trying to write a unit test for my ember controller. It just changes a property and then opens a bootstrap modal. Having difficulty figuring out how to test that the modal actually gets opened. Not sure if this even belongs in a unit test or…
carter
  • 5,074
  • 4
  • 31
  • 40
0
votes
1 answer

ember-cli: moduleFor fails with "Attempting to register an unknown factory" error

I cannot get moduleFor to work in a fresh build using ember-cli version 0.1.5. When using the documentation's example code for moduleFor (and no other changes to the app), I get the following error after running ember test: TypeError: Attempting to…
jake
  • 1,929
  • 3
  • 23
  • 31
0
votes
1 answer

Mocking models for testing Ember.easyForms input component inside another ember component

I am using ember-cli qunit testing using moduleForComponent. I have the following select element inside an ember component I have created. {{input site as="select" collection="sites" selection="site" …
jax
  • 37,735
  • 57
  • 182
  • 278
0
votes
0 answers

Test in Ember.js does never end, it just keeps running

I am currently learning how to test Ember apps and I have an issue I cannot resolve for myself. The problem is that when the test I wrote runs, it never ends. It just keeps running, like it has a promise that never resolves or something? This is the…
Steffen Brem
  • 1,738
  • 18
  • 29
0
votes
1 answer

Bindings for nested component not working in ember-qunit

We have an ember component (let's call it component B), and the template for that component contains another component (component A). If we have computed properties in component B bound to properties in component A, the bindings are not working…
0
votes
2 answers

Testing ember-simple-auth within Ember App Kit

I'm attempting to perform integration/acceptance tests for my Ember app. I'm specifically testing user authentication (e.g. – submitting the login form) and protected pages/states that require authenticated users. General notes about my app: Using…
1 2 3
10
11