Add acceptance tests for all mobile templates

This commit is contained in:
Robin Ward
2016-05-05 12:49:12 -04:00
parent 22d7ea1192
commit 0fcfc6bed9
9 changed files with 78 additions and 29 deletions
@@ -0,0 +1,15 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Topic Discovery - Mobile", { mobileView: true });
test("Visit Discovery Pages", () => {
visit("/");
andThen(() => {
ok(exists(".topic-list"), "The list of topics was rendered");
ok(exists('.topic-list .topic-list-item'), "has topics");
});
visit("/categories");
andThen(() => {
ok(exists('.category'), "has a list of categories");
});
});
@@ -0,0 +1,11 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Signing In - Mobile", { mobileView: true });
test("sign in", () => {
visit("/");
click("header .login-button");
andThen(() => {
ok(exists('#login-form'), "it shows the login modal");
});
});
@@ -0,0 +1,10 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("User Directory - Mobile", { mobileView: true });
test("Visit Page", () => {
visit("/users");
andThen(() => {
ok(exists('.directory .user'), "has a list of users");
});
});