mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Using Discourse.XYZ in templates is deprecated. This fixes that, plus
adds some more integration tests to make sure login required is working.
This commit is contained in:
@@ -19,4 +19,24 @@ test("redirect", function() {
|
||||
andThen(function() {
|
||||
ok(exists('.login-modal'), "they can still access the login modal");
|
||||
});
|
||||
|
||||
click('.modal-header .close');
|
||||
andThen(function() {
|
||||
ok(!exists('.login-modal'), "it closes the login modal");
|
||||
});
|
||||
|
||||
click('#search-button');
|
||||
andThen(function() {
|
||||
ok(exists('.login-modal'), "clicking search opens the login modal");
|
||||
});
|
||||
|
||||
click('.modal-header .close');
|
||||
andThen(function() {
|
||||
ok(!exists('.login-modal'), "it closes the login modal");
|
||||
});
|
||||
|
||||
click('#site-map');
|
||||
andThen(function() {
|
||||
ok(exists('.login-modal'), "site map opens the login modal");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user