mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
Experiment: QUnit for integration Ember integration tests
This commit is contained in:
23
test/javascripts/integration/header_test.js
Normal file
23
test/javascripts/integration/header_test.js
Normal file
@ -0,0 +1,23 @@
|
||||
module("Header", {
|
||||
setup: function() {
|
||||
Ember.run(Discourse, Discourse.advanceReadiness);
|
||||
},
|
||||
|
||||
teardown: function() {
|
||||
$('#discourse-modal').modal('hide')
|
||||
$('#discourse-modal').remove()
|
||||
Discourse.reset();
|
||||
}
|
||||
});
|
||||
|
||||
test("/", function() {
|
||||
expect(2);
|
||||
|
||||
visit("/").then(function() {
|
||||
ok(exists("header"), "The header was rendered");
|
||||
ok(exists("#site-logo"), "The logo was shown");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user