Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
4 merge requests!3478Issue #3337882: Deleted menus are not removed from content type config,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!579Issue #2230909: Simple decimals fail to pass validation
Pipeline #425627 passed with warnings
Pipeline: drupal

#425628

    ......@@ -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}"` : '';
    ......
    ......@@ -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/),
    );
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment