Skip to content
Snippets Groups Projects

[#3484893] Add some additional documentation to e2e.js.

Merged [#3484893] Add some additional documentation to e2e.js.
3 unresolved threads
Merged Joe 🤘 Shindelar requested to merge issue/drupal_cms-3484893:3484893-e2ejs-docs into 0.x
3 unresolved threads

Closes #3484893

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
69 109 Cypress.env('execOptions', execOptions);
70 110 }
71 111
72 // Set a cookie to ensure that visits to the test site will be directed to
73 // a version of the site running in a test database.
112 // Set test database cookie
  • 57 98 runCommand(command).then((result) => {
    58 99 const { db_prefix, user_agent, site_path } = JSON.parse(result.stdout);
    59 100
    60 // We'll need this in the `tearDown` command.
    101 // Save database prefix for teardown
    61 102 Cypress.env('dbPrefix', db_prefix);
    62 103
    63 // Ensure that commands which get the site path from the
    64 // DRUPAL_DEV_SITE_PATH environment variable use the test site's path.
    104 // Set environment variable for the site path
  • Looks great. I made a couple of comments where I don't think we should be removing information.

  • added 1 commit

    • 5ddcd96f - Put back previously removed but still useful information. Addresses comments from @thejimbirch.

    Compare with previous version

  • shalini jha added 74 commits

    added 74 commits

    Compare with previous version

  • 7 7
    8 8 const drupalMessages = '[data-drupal-messages]';
    9 9
    10 /**
    11 * Execute a system command in the test environment.
    12 *
    13 * Commands are run from the Cypress working directory which corresponds to the
    14 * $DDEV_DOCROOT directory.
    15 *
    16 * @param {string} command
    17 * The command to execute.
    18 * @returns {Cypress.Chainable}
    19 * The result of the command execution.
    20 *
    21 * @usage
    22 * cy.runCommand('drush cache:rebuild');
  • Adam G-H
  • Adam G-H
  • added 1 commit

    • af44d8e5 - Applying suggestions from review.

    Compare with previous version

  • added 5 commits

    Compare with previous version

  • Adam G-H approved this merge request

    approved this merge request

  • merged

  • Please register or sign in to reply
    Loading