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