diff --git a/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java b/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java index c104ecd2..a0214600 100644 --- a/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java +++ b/cws-test/src/test/java/jpl/cws/test/integration/ui/WebTestIT.java @@ -11,6 +11,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.openqa.selenium.JavascriptExecutor; + /** * * @author ghollins @@ -209,7 +211,12 @@ public void runHelloWorldTest() { waitForElementXPath("//div[@id=\'processes-table_filter\']/label/input"); - driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")).click(); + WebElement filter = driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")); + + JavascriptExecutor js = (JavascriptExecutor) driver; + js.executeScript("arguments[0].scrollIntoViewIfNeeded();", filter); + // filter.click(); + driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")).sendKeys("test_hello_world"); driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")).sendKeys(Keys.ENTER); @@ -217,6 +224,14 @@ public void runHelloWorldTest() { waitForElementXPath("//a[contains(text(),'History')]"); WebElement historyButton = driver.findElement(By.xpath("//a[contains(text(),'History')]")); + js.executeScript("arguments[0].scrollIntoViewIfNeeded();", historyButton); + + try { + File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); + // Now you can do whatever you need to do with it, for example copy somewhere + FileUtils.copyFile(scrFile, new File("/tmp/history_button.png")); + } catch(IOException e) {} + historyButton.click(); sleep(1000); @@ -252,7 +267,12 @@ public void runGroovyTest() { waitForElementXPath("//div[@id=\'processes-table_filter\']/label/input"); - driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")).click(); + WebElement filter = driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")); + + JavascriptExecutor js = (JavascriptExecutor) driver; + js.executeScript("arguments[0].scrollIntoViewIfNeeded();", filter); + + // filter.click(); driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")).sendKeys("test_groovy_script"); driver.findElement(By.xpath("//div[@id=\'processes-table_filter\']/label/input")).sendKeys(Keys.ENTER); @@ -260,9 +280,23 @@ public void runGroovyTest() { waitForElementXPath("//a[contains(text(),'History')]"); WebElement historyButton = driver.findElement(By.xpath("//a[contains(text(),'History')]")); + js.executeScript("arguments[0].scrollIntoViewIfNeeded();", historyButton); + + try { + File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); + // Now you can do whatever you need to do with it, for example copy somewhere + FileUtils.copyFile(scrFile, new File("/tmp/groovy_button.png")); + } catch(IOException e) {} historyButton.click(); + sleep(1000); + try { + File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); + // Now you can do whatever you need to do with it, for example copy somewhere + FileUtils.copyFile(scrFile, new File("/tmp/groovy.png")); + } catch(IOException e) {} + findOnPage("Groovy."); sleep(9000); diff --git a/cws-ui/src/main/webapp/css/dashboard.css b/cws-ui/src/main/webapp/css/dashboard.css index 0a7b1aef..3f7bbab6 100644 --- a/cws-ui/src/main/webapp/css/dashboard.css +++ b/cws-ui/src/main/webapp/css/dashboard.css @@ -430,6 +430,7 @@ a.nav-link img { margin-top: 13px; position: absolute; left: 75px; + width: calc(100% - 100px); } :target { diff --git a/cws-ui/src/main/webapp/images/check_green.svg b/cws-ui/src/main/webapp/images/check_green.svg new file mode 100644 index 00000000..4dfc9d17 --- /dev/null +++ b/cws-ui/src/main/webapp/images/check_green.svg @@ -0,0 +1,3 @@ + diff --git a/cws-ui/src/main/webapp/images/minus_red.svg b/cws-ui/src/main/webapp/images/minus_red.svg new file mode 100644 index 00000000..29dcf70e --- /dev/null +++ b/cws-ui/src/main/webapp/images/minus_red.svg @@ -0,0 +1,3 @@ + diff --git a/cws-ui/src/main/webapp/images/pen.svg b/cws-ui/src/main/webapp/images/pen.svg new file mode 100644 index 00000000..25f2d49f --- /dev/null +++ b/cws-ui/src/main/webapp/images/pen.svg @@ -0,0 +1,4 @@ + diff --git a/cws-ui/src/main/webapp/images/save.svg b/cws-ui/src/main/webapp/images/save.svg new file mode 100644 index 00000000..495fe961 --- /dev/null +++ b/cws-ui/src/main/webapp/images/save.svg @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/cws-ui/src/main/webapp/images/waterfall.svg b/cws-ui/src/main/webapp/images/waterfall.svg new file mode 100644 index 00000000..e4a1e9a7 --- /dev/null +++ b/cws-ui/src/main/webapp/images/waterfall.svg @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/install/cws-ui/configuration.ftl b/install/cws-ui/configuration.ftl index 53cc7083..93d29805 100755 --- a/install/cws-ui/configuration.ftl +++ b/install/cws-ui/configuration.ftl @@ -179,7 +179,7 @@