diff --git a/spec/phantom_js/smoke_test.js b/spec/phantom_js/smoke_test.js index bf6eb4afa52..50926f3338d 100644 --- a/spec/phantom_js/smoke_test.js +++ b/spec/phantom_js/smoke_test.js @@ -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(); });