Unverified Commit b4b3f327 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3078676 by chr.fritsch, justafish: drupalUserIsLoggedIn doesn't work on https sites

(cherry picked from commit ffce54ec)
parent 4cbcc932
Loading
Loading
Loading
Loading
+1 −1
Changes for core/tests/Drupal/Nightwatch/Commands/drupalUserIsLoggedIn.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ exports.command = function drupalUserIsLoggedIn(callback) {
  if (typeof callback === 'function') {
    this.getCookies(cookies => {
      const sessionExists = cookies.value.some(cookie =>
        cookie.name.match(/^SESS/),
        cookie.name.match(/^S?SESS/),
      );

      callback.call(this, sessionExists);