diff --git a/spec/phantom_js/smoke_test.js b/spec/phantom_js/smoke_test.js index 50926f3338d..55e48cd9a8f 100644 --- a/spec/phantom_js/smoke_test.js +++ b/spec/phantom_js/smoke_test.js @@ -178,11 +178,7 @@ var runTests = function() { return $("#user-card .names").length; }); - if (system.env["READONLY_TESTS"]) { - test("readonly alert is present", function() { - return $(".alert-read-only").length; - }); - } else { + if (!system.env["READONLY_TESTS"]) { exec("open login modal", function() { $(".login-button").click(); });