annotate client/tests/e2e/specs/import.js @ 2268:05cfeeb65411

automatically trigger some imports
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 14 Feb 2019 15:33:35 +0100
parents
children 91ca0cdd2e35
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2268
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 /* This is Free Software under GNU Affero General Public License v >= 3.0
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 * without warranty, see README.md and license for details.
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
3 *
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
4 * SPDX-License-Identifier: AGPL-3.0-or-later
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
5 * License-Filename: LICENSES/AGPL-3.0.txt
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
6 *
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
7 * Copyright (C) 2018 by via donau
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
8 * – Österreichische Wasserstraßen-Gesellschaft mbH
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
9 * Software engineering by Intevation GmbH
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
10 *
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
11 * Author(s):
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
12 * Thomas Junk <thomas.junk@intevation.de>
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
13 */
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
14
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
15 // For authoring Nightwatch tests, see
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 // http://nightwatchjs.org/guide#usage
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
17
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
18 module.exports = {
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 "Bottleneck import": browser => {
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20 browser
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
21 .url(process.env.VUE_DEV_SERVER_URL)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
22 .waitForElementVisible("#app", 5000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 .setValue("input[id='inputUsername']", "sophie")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
24 .setValue("input[id='inputPassword']", "so2Phie4")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
25 .click("button[type='submit']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
26 .pause(1000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
27 .click(".menubutton")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
28 .pause(1000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
29 .click("a[href='#/importschedule']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
30 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
31 .click(".newbutton")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
33 .click("#importtype option:nth-child(1)")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
34 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35 .setValue(
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 "input[type='url']",
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 "https://openservices.doris-info.at/FIS/svc/BottleneckService_v3_0.svc"
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 )
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 .click(".trigger")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 .click("button[type='submit']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
41 .end();
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
42 },
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
43 "Available fairwaydepth": browser => {
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
44 browser
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
45 .url(process.env.VUE_DEV_SERVER_URL)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
46 .waitForElementVisible("#app", 5000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
47 .setValue("input[id='inputUsername']", "sophie")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
48 .setValue("input[id='inputPassword']", "so2Phie4")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
49 .click("button[type='submit']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
50 .pause(1000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
51 .click(".menubutton")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
52 .pause(1000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
53 .click("a[href='#/importschedule']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
54 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
55 .click(".newbutton")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
56 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
57 .click("#importtype option:nth-child(4)")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
58 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
59 .setValue(
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
60 "input[type='url']",
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61 "https://openservices.doris-info.at/FIS/svc/FairwayAvailabilityService_v3_0.svc"
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
62 )
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
63 .click(".trigger")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
64 .click("button[type='submit']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
65 .end();
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
66 },
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
67 "Gauge measurement": browser => {
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
68 browser
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
69 .url(process.env.VUE_DEV_SERVER_URL)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
70 .waitForElementVisible("#app", 5000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
71 .setValue("input[id='inputUsername']", "sophie")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
72 .setValue("input[id='inputPassword']", "so2Phie4")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
73 .click("button[type='submit']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
74 .pause(1000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
75 .click(".menubutton")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
76 .pause(1000)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
77 .click("a[href='#/importschedule']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
78 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
79 .click(".newbutton")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
80 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
81 .click("#importtype option:nth-child(3)")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
82 .pause(600)
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
83 .setValue(
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
84 "input[type='url']",
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
85 "https://openservices.doris-info.at/FIS/svc/NtsWaterlevelService_v2_0_4_0.svc"
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
86 )
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
87 .click(".trigger")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
88 .click("button[type='submit']")
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
89 .end();
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
90 }
05cfeeb65411 automatically trigger some imports
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
91 };