discourse/test/javascripts/integration/static-test.js.es6
Robin Ward 7aa68eaeab Rename "Integration" tests to "Acceptance" tests.
The term "Acceptance" seems to have won out everywhere and I don't want
our codebase to be confusing.
2015-04-06 14:14:00 -04:00

29 lines
655 B
JavaScript

import { acceptance } from "helpers/qunit-helpers";
acceptance("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`");
});
});