comparison client/tests/e2e/specs/protocols.js @ 2931:f90f2fd94fbc

added regression test for protocols
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 04 Apr 2019 12:25:35 +0200
parents
children
comparison
equal deleted inserted replaced
2930:1019f4d0e18f 2931:f90f2fd94fbc
1 /* This is Free Software under GNU Affero General Public License v >= 3.0
2 * without warranty, see README.md and license for details.
3 *
4 * SPDX-License-Identifier: AGPL-3.0-or-later
5 * License-Filename: LICENSES/AGPL-3.0.txt
6 *
7 * Copyright (C) 2018 by via donau
8 * – Österreichische Wasserstraßen-Gesellschaft mbH
9 * Software engineering by Intevation GmbH
10 *
11 * Author(s):
12 * Thomas Junk <thomas.junk@intevation.de>
13 */
14
15 // For authoring Nightwatch tests, see
16 // http://nightwatchjs.org/guide#usage
17
18 module.exports = {
19 "Loading protocols": browser => {
20 browser
21 .url(process.env.VUE_DEV_SERVER_URL)
22 .waitForElementVisible("#app", 5000)
23 .setValue("input[id='inputUsername']", "sophie")
24 .setValue("input[id='inputPassword']", "so2Phie4")
25 .click("button[type='submit']")
26 .pause(1000)
27 .click(".menubutton")
28 .pause(1000)
29 .click("a[href='#/logs']")
30 .pause(1000)
31 .assert.urlContains("#/logs")
32 .click("#accesslog")
33 .click("#errorlog")
34 .assert.urlContains("#/logs")
35 .end();
36 }
37 };