Remove more view classes

This commit is contained in:
Robin Ward
2016-11-10 16:20:31 -05:00
parent d98aa48f0d
commit 01a8ef590a
11 changed files with 32 additions and 74 deletions

View File

@ -19,17 +19,23 @@ test("update some fields", () => {
});
});
test("about me", () => {
test("username", () => {
visit("/users/eviltrout/preferences/username");
andThen(() => {
ok(exists("#change_username"), "it has the input element for the bio");
ok(exists("#change_username"), "it has the input element");
});
});
test("username", () => {
test("about me", () => {
visit("/users/eviltrout/preferences/about-me");
andThen(() => {
ok(exists(".raw-bio"), "it has the input element for the bio");
ok(exists(".raw-bio"), "it has the input element");
});
});
test("email", () => {
visit("/users/eviltrout/preferences/email");
andThen(() => {
ok(exists("#change_email"), "it has the input element");
});
});

View File

@ -18,6 +18,7 @@ test("Visit Discovery Pages", () => {
visit("/categories");
andThen(() => {
ok($('body.navigation-categories').length, "has the body class");
ok($('body.category-bug').length === 0, "removes the custom category class");
ok(exists('.category'), "has a list of categories");
ok($('body.categories-list').length, "has a custom class to indicate categories");