Unverified Commit 353ba71c authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3272727 by mherchel, nod_: Nightwatch's drupalModuleInstall() doesn't...

Issue #3272727 by mherchel, nod_: Nightwatch's drupalModuleInstall() doesn't handle test modules or modules w underscores in machine name

(cherry picked from commit c4b374ba)
parent ebc14e6a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -12,7 +12,10 @@ exports.command = function drupalInstallModule(module, callback) {
  const self = this;
  this.drupalLoginAsAdmin(() => {
    this.drupalRelativeURL('/admin/modules')
      .click(`input[data-drupal-selector="edit-modules-${module}-enable"]`)
      // Filter module list to ensure that collapsable <details> elements are expanded.
      .updateValue('[data-drupal-selector="edit-text"]', module)
      .waitForElementVisible(`[name="modules[${module}][enable]"]`, 10000)
      .click(`[name="modules[${module}][enable]"]`)
      .click('input[data-drupal-selector="edit-submit"]')
      // Wait for the install message to show up.
      .waitForElementVisible('.system-modules', 10000);