discourse/test/javascripts/integration/header_test.js

23 lines
505 B
JavaScript
Raw Normal View History

2013-06-20 13:58:54 -04:00
integration("Header");
2013-10-31 12:27:28 -04:00
test("header", function() {
expect(1);
visit("/").then(function() {
2013-10-31 12:27:28 -04:00
ok(exists("header"), "is rendered");
});
});
2013-10-31 12:27:28 -04:00
test("logo", function() {
expect(2);
visit("/").then(function() {
2013-10-31 12:27:28 -04:00
ok(exists(".logo-big"), "is rendered");
Ember.run(function() {
2013-10-31 12:27:28 -04:00
controllerFor("header").set("showExtraInfo", true);
});
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)");
});
});