changeset 2271:91ca0cdd2e35

more e2e test for imports
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 14 Feb 2019 16:12:34 +0100
parents 1c8b8a4476af
children f06e9e0cb790
files client/tests/e2e/specs/import.js
diffstat 1 files changed, 78 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/tests/e2e/specs/import.js	Thu Feb 14 16:05:02 2019 +0100
+++ b/client/tests/e2e/specs/import.js	Thu Feb 14 16:12:34 2019 +0100
@@ -87,5 +87,83 @@
       .click(".trigger")
       .click("button[type='submit']")
       .end();
+  },
+  "Import Fairway Dimensions": browser => {
+    browser
+      .url(process.env.VUE_DEV_SERVER_URL)
+      .waitForElementVisible("#app", 5000)
+      .setValue("input[id='inputUsername']", "sophie")
+      .setValue("input[id='inputPassword']", "so2Phie4")
+      .click("button[type='submit']")
+      .pause(1000)
+      .click(".menubutton")
+      .pause(1000)
+      .click("a[href='#/importschedule']")
+      .pause(600)
+      .click(".newbutton")
+      .pause(600)
+      .click("#importtype option:nth-child(6)")
+      .pause(600)
+      .setValue(
+        "input[type='url']",
+        "https://service.d4d-portal.info/wamos/wfs"
+      )
+      .setValue(".featuretype", "ws-wamos:hydro_fairwy")
+      .setValue(".sortby", "hydro_scamin")
+      .setValue(".depth", "250")
+      .setValue(".minwidth", "80")
+      .setValue(".maxwidth", "150")
+      .setValue(".sourceorganization", "D4D Portal")
+      .click(".trigger")
+      .click("button[type='submit']")
+      .end();
+  },
+  "Import Waterway Axis": browser => {
+    browser
+      .url(process.env.VUE_DEV_SERVER_URL)
+      .waitForElementVisible("#app", 5000)
+      .setValue("input[id='inputUsername']", "sophie")
+      .setValue("input[id='inputPassword']", "so2Phie4")
+      .click("button[type='submit']")
+      .pause(1000)
+      .click(".menubutton")
+      .pause(1000)
+      .click("a[href='#/importschedule']")
+      .pause(600)
+      .click(".newbutton")
+      .pause(600)
+      .click("#importtype option:nth-child(2)")
+      .pause(600)
+      .setValue(
+        "input[type='url']",
+        "https://service.d4d-portal.info/wamos/wfs"
+      )
+      .setValue(".featuretype", "ws-wamos:ienc_wtwaxs")
+      .setValue(".sortby", "hydro_scamin")
+      .end();
+  },
+  "Import Waterway Area ": browser => {
+    browser
+      .url(process.env.VUE_DEV_SERVER_URL)
+      .waitForElementVisible("#app", 5000)
+      .setValue("input[id='inputUsername']", "sophie")
+      .setValue("input[id='inputPassword']", "so2Phie4")
+      .click("button[type='submit']")
+      .pause(1000)
+      .click(".menubutton")
+      .pause(1000)
+      .click("a[href='#/importschedule']")
+      .pause(600)
+      .click(".newbutton")
+      .pause(600)
+      .click("#importtype option:nth-child(5)")
+      .pause(600)
+      .setValue(
+        "input[type='url']",
+        "https://service.d4d-portal.info/wamos/wfs"
+      )
+      .setValue(".featuretype", "ws-wamos:ienc_wtware")
+      .setValue(".sortby", "hydro_scamin")
+      .end();
   }
 };