FIX qunit test runner for phantomjs 2.0

This commit is contained in:
Régis Hanol
2015-08-25 10:42:19 +02:00
parent 124fc4daf7
commit 294669c856
5 changed files with 31 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ import { acceptance } from "helpers/qunit-helpers";
acceptance("Category Edit", { loggedIn: true });
test("Can open the category modal", (assert) => {
test("Can open the category modal", assert => {
visit("/c/bug");
click('.edit-category');
@@ -17,7 +17,7 @@ test("Can open the category modal", (assert) => {
});
});
test("Change the category color", (assert) => {
test("Change the category color", assert => {
visit("/c/bug");
click('.edit-category');
@@ -29,7 +29,7 @@ test("Change the category color", (assert) => {
});
});
test("Change the topic template", (assert) => {
test("Change the topic template", assert => {
visit("/c/bug");
click('.edit-category');

View File

@@ -16,7 +16,7 @@ test("Enter without an id", () => {
});
});
test("Enter a 404 topic", (assert) => {
test("Enter a 404 topic", assert => {
visit("/t/not-found/404");
andThen(() => {
assert.ok(!exists("#topic"), "The topic was not rendered");
@@ -24,7 +24,7 @@ test("Enter a 404 topic", (assert) => {
});
});
test("Enter without access", (assert) => {
test("Enter without access", assert => {
visit("/t/i-dont-have-access/403");
andThen(() => {
assert.ok(!exists("#topic"), "The topic was not rendered");
@@ -32,7 +32,7 @@ test("Enter without access", (assert) => {
});
});
test("Enter with 500 errors", (assert) => {
test("Enter with 500 errors", assert => {
visit("/t/throws-error/500");
andThen(() => {
assert.ok(!exists("#topic"), "The topic was not rendered");