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:
parent
8ae445766f
commit
cc525b1a8d
145 changed files with 7569 additions and 6763 deletions
|
@ -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`");
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue