2013-06-20 13:58:54 -04:00
|
|
|
integration("Header");
|
2013-06-12 11:56:59 -04:00
|
|
|
|
2013-10-31 12:27:28 -04:00
|
|
|
test("header", function() {
|
|
|
|
expect(1);
|
2013-10-29 12:33:53 -04:00
|
|
|
|
|
|
|
visit("/").then(function() {
|
2013-10-31 12:27:28 -04:00
|
|
|
ok(exists("header"), "is rendered");
|
2013-10-29 12:33:53 -04:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2013-10-31 12:27:28 -04:00
|
|
|
test("logo", function() {
|
2013-10-29 12:33:53 -04:00
|
|
|
expect(2);
|
|
|
|
|
|
|
|
visit("/").then(function() {
|
2013-10-31 12:27:28 -04:00
|
|
|
ok(exists(".logo-big"), "is rendered");
|
2013-10-29 12:33:53 -04:00
|
|
|
|
|
|
|
Ember.run(function() {
|
2013-10-31 12:27:28 -04:00
|
|
|
controllerFor("header").set("showExtraInfo", true);
|
2013-10-29 12:33:53 -04:00
|
|
|
});
|
2013-10-31 12:27:28 -04:00
|
|
|
ok(exists(".logo-small"), "is properly wired to showExtraInfo property (when showExtraInfo value changes, logo size also changes)");
|
2013-10-29 12:33:53 -04:00
|
|
|
});
|
|
|
|
});
|