mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Add readonly test to smoke tests.
This commit is contained in:
parent
5b9ddaf972
commit
38123a4246
1 changed files with 5 additions and 1 deletions
|
@ -178,7 +178,11 @@ var runTests = function() {
|
||||||
return $("#user-card .names").length;
|
return $("#user-card .names").length;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!system.env["SKIP_WRITE_TESTS"]) {
|
if (system.env["READONLY_TESTS"]) {
|
||||||
|
test("readonly alert is present", function() {
|
||||||
|
return $(".alert-read-only").length;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
exec("open login modal", function() {
|
exec("open login modal", function() {
|
||||||
$(".login-button").click();
|
$(".login-button").click();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue