diff --git a/spec/phantom_js/smoke_test.js b/spec/phantom_js/smoke_test.js index 4b85dff14dc..04d0984399c 100644 --- a/spec/phantom_js/smoke_test.js +++ b/spec/phantom_js/smoke_test.js @@ -140,8 +140,8 @@ function run() { var runTests = function() { - test("expect a log in button", function() { - return $(".login-button").text().trim() === "Log In"; + test("expect a log in button in the header", function() { + return $("header .login-button").length; }); execAsync("go to latest page", 500, function(){