Loading core/package.json +2 −2 Original line number Diff line number Diff line Loading @@ -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", Loading @@ -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", Loading core/tests/Drupal/Nightwatch/Commands/drupalCreateRole.js +11 −7 Original line number Diff line number Diff line Loading @@ -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'); Loading @@ -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(() => { Loading core/tests/Drupal/Nightwatch/Commands/drupalLogin.js +1 −2 Original line number Diff line number Diff line Loading @@ -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( Loading core/yarn.lock +176 −71 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
core/package.json +2 −2 Original line number Diff line number Diff line Loading @@ -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", Loading @@ -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", Loading
core/tests/Drupal/Nightwatch/Commands/drupalCreateRole.js +11 −7 Original line number Diff line number Diff line Loading @@ -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'); Loading @@ -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(() => { Loading
core/tests/Drupal/Nightwatch/Commands/drupalLogin.js +1 −2 Original line number Diff line number Diff line Loading @@ -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( Loading