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