Add readonly test to smoke tests.

This commit is contained in:
Guo Xiang Tan 2017-10-19 16:34:54 +08:00
parent 5b9ddaf972
commit 38123a4246

View File

@ -178,7 +178,11 @@ var runTests = function() {
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() {
$(".login-button").click();
});