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