From 130e7f214b4936db813fa77c3666cfea571de058 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 19 May 2017 22:25:08 +0800 Subject: [PATCH] Account for sites using text site logo in smoke test. --- spec/phantom_js/smoke_test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/phantom_js/smoke_test.js b/spec/phantom_js/smoke_test.js index f1ed84d87fb..640a9db8cc9 100644 --- a/spec/phantom_js/smoke_test.js +++ b/spec/phantom_js/smoke_test.js @@ -197,7 +197,8 @@ var runTests = function() { }); exec("go home", function() { - $('#site-logo').click(); + if ($('#site-logo').length()) $('#site-logo').click(); + if ($('#site-text-logo').length()) $('#site-text-logo').click(); }); test("it shows a topic list", function() {