[#3484893] Add some additional documentation to e2e.js.
3 unresolved threads
Closes #3484893
Merge request reports
Activity
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 changed this line in version 2 of the diff
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 changed this line in version 2 of the diff
added 1 commit
- 5ddcd96f - Put back previously removed but still useful information. Addresses comments from @thejimbirch.
added 74 commits
-
5ddcd96f...16ed2b30 - 72 commits from branch
project:0.x
- 6168274a - [#3484893] Add some additional documentation to e2e.js.
- 1c17b34e - Put back previously removed but still useful information. Addresses comments from @thejimbirch.
-
5ddcd96f...16ed2b30 - 72 commits from branch
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'); - Comment on lines +20 to +22
We should remove this; this is an internal function that not added to
cy
(if it were, this would be usingCypress.Commands.add(...)
).Edited by Adam G-H changed this line in version 5 of the diff
- Resolved by Joe 🤘 Shindelar
- Resolved by Joe 🤘 Shindelar
- Resolved by Adam G-H
added 5 commits
-
af44d8e5...445b8d3e - 3 commits from branch
project:0.x
- f9717f0e - Updates based on review feedback.
- 2b6761a7 - Merge branch '0.x' into 3484893-e2ejs-docs
-
af44d8e5...445b8d3e - 3 commits from branch
Please register or sign in to reply