Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Nightwatch / Tests / statesTest.js
1 module.exports = {
2   '@tags': ['core'],
3   before(browser) {
4     browser.drupalInstall().drupalLoginAsAdmin(() => {
5       browser
6         .drupalRelativeURL('/admin/modules')
7         .setValue('input[type="search"]', 'FormAPI')
8         .waitForElementVisible('input[name="modules[form_test][enable]"]', 1000)
9         .click('input[name="modules[form_test][enable]"]')
10         .click('input[type="submit"]') // Submit module form.
11         .click('input[type="submit"]'); // Confirm installation of dependencies.
12     });
13   },
14   after(browser) {
15     browser.drupalUninstall();
16   },
17   'Test form with state API': browser => {
18     browser
19       .drupalRelativeURL('/form-test/javascript-states-form')
20       .waitForElementVisible('body', 1000)
21       .waitForElementNotVisible('input[name="textfield"]', 1000);
22   },
23 };