Allow smoke tests that writes data to be skipped.

This commit is contained in:
Guo Xiang Tan 2017-10-17 16:20:24 +08:00
parent 1b5ee0ae72
commit bdd3713ca4

View File

@ -178,6 +178,7 @@ var runTests = function() {
return $("#user-card .names").length;
});
if (!system.env["SKIP_WRITE_TESTS"]) {
exec("open login modal", function() {
$(".login-button").click();
});
@ -293,6 +294,7 @@ var runTests = function() {
return !document.querySelector(".saving-text")
&& $(".topic-post").length === 2;
});
}
run();
};