Add acceptance tests for all mobile templates
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user