Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
18
web/core/tests/Drupal/Nightwatch/Tests/exampleTest.js
Normal file
18
web/core/tests/Drupal/Nightwatch/Tests/exampleTest.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
module.exports = {
|
||||
'@tags': ['core'],
|
||||
before(browser) {
|
||||
browser.drupalInstall({
|
||||
setupFile: 'core/tests/Drupal/TestSite/TestSiteInstallTestScript.php',
|
||||
});
|
||||
},
|
||||
after(browser) {
|
||||
browser.drupalUninstall();
|
||||
},
|
||||
'Test page': browser => {
|
||||
browser
|
||||
.drupalRelativeURL('/test-page')
|
||||
.waitForElementVisible('body', 1000)
|
||||
.assert.containsText('body', 'Test page text')
|
||||
.drupalLogAndEnd({ onlyOnError: false });
|
||||
},
|
||||
};
|
23
web/core/tests/Drupal/Nightwatch/Tests/loginTest.js
Normal file
23
web/core/tests/Drupal/Nightwatch/Tests/loginTest.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
module.exports = {
|
||||
'@tags': ['core'],
|
||||
|
||||
before(browser) {
|
||||
browser.drupalInstall();
|
||||
},
|
||||
after(browser) {
|
||||
browser.drupalUninstall();
|
||||
},
|
||||
|
||||
'Test login': browser => {
|
||||
browser
|
||||
.drupalCreateUser({
|
||||
name: 'user',
|
||||
password: '123',
|
||||
permissions: ['access site reports'],
|
||||
})
|
||||
.drupalLogin({ name: 'user', password: '123' })
|
||||
.drupalRelativeURL('/admin/reports')
|
||||
.expect.element('h1.page-title')
|
||||
.text.to.contain('Reports');
|
||||
},
|
||||
};
|
23
web/core/tests/Drupal/Nightwatch/Tests/statesTest.js
Normal file
23
web/core/tests/Drupal/Nightwatch/Tests/statesTest.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
module.exports = {
|
||||
'@tags': ['core'],
|
||||
before(browser) {
|
||||
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();
|
||||
},
|
||||
'Test form with state API': browser => {
|
||||
browser
|
||||
.drupalRelativeURL('/form-test/javascript-states-form')
|
||||
.waitForElementVisible('body', 1000)
|
||||
.waitForElementNotVisible('input[name="textfield"]', 1000);
|
||||
},
|
||||
};
|
Reference in a new issue