Skip to content
Snippets Groups Projects
Commit cc55493e authored by catch's avatar catch
Browse files

Issue #3281863 by alexpott, Wim Leers, nod_, hestenet, xjm, huzooka,...

Issue #3281863 by alexpott, Wim Leers, nod_, hestenet, xjm, huzooka, Mixologic: Nightwatch tests failing >50% of test runs on PHP 7.3 in 9.4.x and 9.5.x, as well as PHP 8.1 on 10.0.x

(cherry picked from commit d69212e1)
parent d851e0cf
No related branches found
No related tags found
Loading
......@@ -13,12 +13,22 @@ exports.command = function drupalInstallModule(module, callback) {
this.drupalLoginAsAdmin(() => {
this.drupalRelativeURL('/admin/modules')
// 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);
.updateValue(
'form.system-modules [data-drupal-selector="edit-text"]',
module,
)
.waitForElementVisible(
`form.system-modules [name="modules[${module}][enable]"]`,
10000,
)
.click(`form.system-modules [name="modules[${module}][enable]"]`)
.submitForm('form.system-modules')
// Wait for the checkbox for the module to be disabled as a sign that the
// module has been enabled.
.waitForElementPresent(
`form.system-modules [name="modules[${module}][enable]"]:disabled`,
10000,
);
}).perform(() => {
if (typeof callback === 'function') {
callback.call(self);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment