mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX qunit test runner for phantomjs 2.0
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user