Commit be0fc494 authored by catch's avatar catch
Browse files

Issue #3306446 by Spokje, bnjmnm, finnsky, longwave, andypost, fcertal,...

Issue #3306446 by Spokje, bnjmnm, finnsky, longwave, andypost, fcertal, lauriii, nod_, Wim Leers: Update Nightwatch to 2.4.1

(cherry picked from commit e7668b63)
parent f483fcd2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@
    "@drupal/once": "1.0.x",
    "backbone": "1.4.x",
    "chokidar": "^3.3.1",
    "chromedriver": "^98.0.1",
    "chromedriver": "^106",
    "ckeditor5": "~35.2.0",
    "cspell": "^6.0.0",
    "dotenv-safe": "^8.2.0",
@@ -76,7 +76,7 @@
    "loadjs": "4.2.x",
    "minimist": "^1.2.2",
    "mkdirp": "^1.0.4",
    "nightwatch": "^2.1.3",
    "nightwatch": "^2.3.9",
    "normalize.css": "8.0.x",
    "postcss": "^8.4.16",
    "postcss-header": "^3.0.2",
+11 −7
Original line number Diff line number Diff line
@@ -22,15 +22,19 @@ exports.command = function drupalCreateRole(
  let machineName;
  this.drupalLoginAsAdmin(async () => {
    this.drupalRelativeURL('/admin/people/roles/add');
    this.setValue('input[name="label"]', roleName);

    this.setValue('input[name="label"]', roleName)
    this.execute(() => {
      jQuery('input[name="label"]').trigger('formUpdated');
    });
    // Wait for the machine name to appear so that it can be used later to
    // select the permissions from the permission page.
      .expect.element('.user-role-form .machine-name-value')
    this.expect
      .element('.user-role-form .machine-name-value')
      .to.be.visible.before(2000);

    machineName = await this.getText('.user-role-form .machine-name-value');
    this.submitForm('#user-role-form').waitForElementVisible('body');
    this.submitForm('#user-role-form');

    this.drupalRelativeURL('/admin/people/permissions');

@@ -40,7 +44,7 @@ exports.command = function drupalCreateRole(
      ),
    );

    this.submitForm('#user-admin-permissions').waitForElementVisible('body');
    this.submitForm('#user-admin-permissions');

    this.drupalRelativeURL('/admin/people/permissions');
  }).perform(() => {
+1 −2
Original line number Diff line number Diff line
@@ -18,8 +18,7 @@ exports.command = function drupalLogin({ name, password }) {
    this.drupalRelativeURL('/user/login')
      .setValue('input[name="name"]', name)
      .setValue('input[name="pass"]', password)
      .submitForm('#user-login-form')
      .waitForElementVisible('body');
      .submitForm('#user-login-form');
    // Assert that a user is logged in.
    this.drupalUserIsLoggedIn((sessionExists) => {
      this.assert.equal(
+176 −71

File changed.

Preview size limit exceeded, changes collapsed.