Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / tests / Drupal / Nightwatch / Tests / exampleTest.js
diff --git a/web/core/tests/Drupal/Nightwatch/Tests/exampleTest.js b/web/core/tests/Drupal/Nightwatch/Tests/exampleTest.js
new file mode 100644 (file)
index 0000000..5e0dc4b
--- /dev/null
@@ -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 });
+  },
+};