annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
164
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 // For authoring Nightwatch tests, see
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 // http://nightwatchjs.org/guide#usage
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
3
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
4 module.exports = {
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
5 "default e2e tests": browser => {
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
6 browser
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
7 .url(process.env.VUE_DEV_SERVER_URL)
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 .waitForElementVisible("#app", 5000)
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
9 .assert.elementPresent(".login")
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
10 .end();
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
11 }
7c40e9f28f94 test: Moved testfile. Established nightwatch tests
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
12 };