Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
2267:37ae1bee3e4a | 2268:05cfeeb65411 |
---|---|
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 "Bottleneck import": 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='#/importschedule']") | |
30 .pause(600) | |
31 .click(".newbutton") | |
32 .pause(600) | |
33 .click("#importtype option:nth-child(1)") | |
34 .pause(600) | |
35 .setValue( | |
36 "input[type='url']", | |
37 "https://openservices.doris-info.at/FIS/svc/BottleneckService_v3_0.svc" | |
38 ) | |
39 .click(".trigger") | |
40 .click("button[type='submit']") | |
41 .end(); | |
42 }, | |
43 "Available fairwaydepth": browser => { | |
44 browser | |
45 .url(process.env.VUE_DEV_SERVER_URL) | |
46 .waitForElementVisible("#app", 5000) | |
47 .setValue("input[id='inputUsername']", "sophie") | |
48 .setValue("input[id='inputPassword']", "so2Phie4") | |
49 .click("button[type='submit']") | |
50 .pause(1000) | |
51 .click(".menubutton") | |
52 .pause(1000) | |
53 .click("a[href='#/importschedule']") | |
54 .pause(600) | |
55 .click(".newbutton") | |
56 .pause(600) | |
57 .click("#importtype option:nth-child(4)") | |
58 .pause(600) | |
59 .setValue( | |
60 "input[type='url']", | |
61 "https://openservices.doris-info.at/FIS/svc/FairwayAvailabilityService_v3_0.svc" | |
62 ) | |
63 .click(".trigger") | |
64 .click("button[type='submit']") | |
65 .end(); | |
66 }, | |
67 "Gauge measurement": browser => { | |
68 browser | |
69 .url(process.env.VUE_DEV_SERVER_URL) | |
70 .waitForElementVisible("#app", 5000) | |
71 .setValue("input[id='inputUsername']", "sophie") | |
72 .setValue("input[id='inputPassword']", "so2Phie4") | |
73 .click("button[type='submit']") | |
74 .pause(1000) | |
75 .click(".menubutton") | |
76 .pause(1000) | |
77 .click("a[href='#/importschedule']") | |
78 .pause(600) | |
79 .click(".newbutton") | |
80 .pause(600) | |
81 .click("#importtype option:nth-child(3)") | |
82 .pause(600) | |
83 .setValue( | |
84 "input[type='url']", | |
85 "https://openservices.doris-info.at/FIS/svc/NtsWaterlevelService_v2_0_4_0.svc" | |
86 ) | |
87 .click(".trigger") | |
88 .click("button[type='submit']") | |
89 .end(); | |
90 } | |
91 }; |