mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
28 lines
634 B
JavaScript
28 lines
634 B
JavaScript
integration("Static");
|
|
|
|
test("Static Pages", function() {
|
|
visit("/faq");
|
|
andThen(function() {
|
|
ok(exists(".body-page"), "The content is present");
|
|
});
|
|
|
|
visit("/guidelines");
|
|
andThen(function() {
|
|
ok(exists(".body-page"), "The content is present");
|
|
});
|
|
|
|
visit("/tos");
|
|
andThen(function() {
|
|
ok(exists(".body-page"), "The content is present");
|
|
});
|
|
|
|
visit("/privacy");
|
|
andThen(function() {
|
|
ok(exists(".body-page"), "The content is present");
|
|
});
|
|
|
|
visit("/login");
|
|
andThen(function() {
|
|
equal(currentPath(), "discovery.latest", "it redirects them to latest unless `login_required`");
|
|
});
|
|
});
|