2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Upgrade QUnit to latest version

This commit is contained in:
Robin Ward 2017-06-14 13:57:58 -04:00
parent 8ae445766f
commit cc525b1a8d
145 changed files with 7569 additions and 6763 deletions

View file

@ -1,33 +1,33 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Static");
test("Static Pages", () => {
QUnit.test("Static Pages", assert => {
visit("/faq");
andThen(() => {
ok($('body.static-faq').length, "has the body class");
ok(exists(".body-page"), "The content is present");
assert.ok($('body.static-faq').length, "has the body class");
assert.ok(exists(".body-page"), "The content is present");
});
visit("/guidelines");
andThen(() => {
ok($('body.static-guidelines').length, "has the body class");
ok(exists(".body-page"), "The content is present");
assert.ok($('body.static-guidelines').length, "has the body class");
assert.ok(exists(".body-page"), "The content is present");
});
visit("/tos");
andThen(() => {
ok($('body.static-tos').length, "has the body class");
ok(exists(".body-page"), "The content is present");
assert.ok($('body.static-tos').length, "has the body class");
assert.ok(exists(".body-page"), "The content is present");
});
visit("/privacy");
andThen(() => {
ok($('body.static-privacy').length, "has the body class");
ok(exists(".body-page"), "The content is present");
assert.ok($('body.static-privacy').length, "has the body class");
assert.ok(exists(".body-page"), "The content is present");
});
visit("/login");
andThen(() => {
equal(currentPath(), "discovery.latest", "it redirects them to latest unless `login_required`");
assert.equal(currentPath(), "discovery.latest", "it redirects them to latest unless `login_required`");
});
});
});