From 38123a4246934665f14c602c3bd20c9ac4dcc114 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 19 Oct 2017 16:34:54 +0800 Subject: [PATCH] Add readonly test to smoke tests. --- spec/phantom_js/smoke_test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); });