2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
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 17:27:28 +01:00
test("header", function() {
expect(1);
visit("/").then(function() {
2013-10-31 17:27:28 +01:00
ok(exists("header"), "is rendered");
});
});
2013-10-31 17:27:28 +01:00
test("logo", function() {
expect(2);
visit("/").then(function() {
2013-10-31 17:27:28 +01:00
ok(exists(".logo-big"), "is rendered");
Ember.run(function() {
2013-10-31 17:27:28 +01:00
controllerFor("header").set("showExtraInfo", true);
});
2013-10-31 17:27:28 +01:00
ok(exists(".logo-small"), "is properly wired to showExtraInfo property (when showExtraInfo value changes, logo size also changes)");
});
});