Verified Commit 3d2f1509 authored by Alex Pott's avatar Alex Pott
Browse files

Revert "Issue #3413665 by Spokje: Enable modules through Nightwatch API when...

Revert "Issue #3413665 by Spokje: Enable modules through Nightwatch API when not testing module enabling"

This reverts commit 977e680a.
parent 32a98379
Loading
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
module.exports = {
  '@tags': ['core', 'ckeditor5'],
  before(browser) {
    browser
      .drupalInstall({ installProfile: 'minimal' })
      .drupalInstallModule('ckeditor5', true)
      .drupalInstallModule('field_ui');
    browser.drupalInstall({ installProfile: 'minimal' });
  },
  after(browser) {
    browser.drupalUninstall();
@@ -12,6 +9,17 @@ module.exports = {
  'Verify code block configured languages are respected': (browser) => {
    browser.drupalLoginAsAdmin(() => {
      browser
        // Enable required modules.
        .drupalRelativeURL('/admin/modules')
        .click('[name="modules[ckeditor5][enable]"]')
        .click('[name="modules[field_ui][enable]"]')
        .submitForm('input[type="submit"]') // Submit module form.
        .waitForElementVisible(
          '.system-modules-confirm-form input[value="Continue"]',
        )
        .submitForm('input[value="Continue"]') // Confirm installation of dependencies.
        .waitForElementVisible('.system-modules', 10000)

        // Create new input format.
        .drupalRelativeURL('/admin/config/content/formats/add')
        .waitForElementVisible('[data-drupal-selector="edit-name"]')
+9 −1
Original line number Diff line number Diff line
@@ -210,7 +210,15 @@ const MachineNameTestArray = [
];
module.exports = {
  before(browser) {
    browser.drupalInstall().drupalInstallModule('form_test', true);
    browser.drupalInstall().drupalLoginAsAdmin(() => {
      browser
        .drupalRelativeURL('/admin/modules')
        .setValue('input[type="search"]', 'FormAPI')
        .waitForElementVisible('input[name="modules[form_test][enable]"]', 1000)
        .click('input[name="modules[form_test][enable]"]')
        .click('input[type="submit"]') // Submit module form.
        .click('input[type="submit"]'); // Confirm installation of dependencies.
    });
  },
  after(browser) {
    browser.drupalUninstall();