Verified Commit 3ac83171 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3506690 by tom konda: Replace browser.getCookies/browser.deleteCookies...

Issue #3506690 by tom konda: Replace browser.getCookies/browser.deleteCookies with browser.cookies.getAll/browser.cookies.deleteAll in Nightwatch.js testing
parent b2205aff
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ exports.command = function drupalInstall(
  const self = this;

  // Ensure no session cookie exists anymore; they won't work on this newly installed Drupal site anyway.
  this.deleteCookies();
  this.cookies.deleteAll();

  try {
    setupFile = setupFile ? `--setup-file "${setupFile}"` : '';
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
 */
exports.command = function drupalUserIsLoggedIn(callback) {
  if (typeof callback === 'function') {
    this.getCookies((cookies) => {
    this.cookies.getAll((cookies) => {
      const sessionExists = cookies.value.some((cookie) =>
        cookie.name.match(/^S?SESS/),
      );