mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:53:51 +08:00
29 lines
634 B
JavaScript
29 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`");
|
|
});
|
|
});
|