2015-04-06 14:14:00 -04:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
2015-04-01 14:18:46 -04:00
|
|
|
acceptance("Header (Staff)", { loggedIn: true });
|
2014-07-31 14:17:18 -04:00
|
|
|
|
2015-03-19 07:22:56 -04:00
|
|
|
test("header", () => {
|
2014-07-31 14:17:18 -04:00
|
|
|
visit("/");
|
|
|
|
|
|
|
|
// User dropdown
|
|
|
|
click("#current-user");
|
2015-03-19 07:22:56 -04:00
|
|
|
andThen(() => {
|
2015-08-28 14:32:53 -04:00
|
|
|
ok(exists(".user-menu:visible"), "is lazily rendered after user opens it");
|
2015-08-29 19:54:13 -04:00
|
|
|
ok(exists(".user-menu .menu-links-header"), "has showing / hiding user-dropdown links correctly bound");
|
2014-07-31 14:17:18 -04:00
|
|
|
});
|
|
|
|
});
|