From bf5ba5fbd1ab17e23a347d4cd2d575bf95f03e75 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 14 Nov 2017 11:18:38 +0800 Subject: [PATCH] Remove `readonly alert` smoke test. --- spec/phantom_js/smoke_test.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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(); });