
| Current Path : /var/www/html/german-vocational.cn/core/tests/Drupal/Nightwatch/Tests/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/german-vocational.cn/core/tests/Drupal/Nightwatch/Tests/loginTest.js |
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');
},
};