X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Ftests%2FDrupal%2FNightwatch%2FTests%2FexampleTest.js;fp=web%2Fcore%2Ftests%2FDrupal%2FNightwatch%2FTests%2FexampleTest.js;h=5e0dc4b86de542c21312fd291a7563be93c9a3b6;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=0000000000000000000000000000000000000000;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/tests/Drupal/Nightwatch/Tests/exampleTest.js b/web/core/tests/Drupal/Nightwatch/Tests/exampleTest.js new file mode 100644 index 000000000..5e0dc4b86 --- /dev/null +++ b/web/core/tests/Drupal/Nightwatch/Tests/exampleTest.js @@ -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 }); + }, +};