Mercurial > gemma
diff client/tests/e2e/specs/test.js @ 164:7c40e9f28f94
test: Moved testfile. Established nightwatch tests
Vue-cli offers easy e2e test integration with nightowl.
Nightowl leverages the selenium webdriver.
So the bedrock for a test suite is laid.
Additionally: Upgraded packages of vue-cli, which are now at least
Release Candidates.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 06 Jul 2018 10:51:19 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/tests/e2e/specs/test.js Fri Jul 06 10:51:19 2018 +0200 @@ -0,0 +1,12 @@ +// For authoring Nightwatch tests, see +// http://nightwatchjs.org/guide#usage + +module.exports = { + "default e2e tests": browser => { + browser + .url(process.env.VUE_DEV_SERVER_URL) + .waitForElementVisible("#app", 5000) + .assert.elementPresent(".login") + .end(); + } +};