You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by li...@apache.org on 2020/09/22 11:45:37 UTC
[submarine] branch master updated: SUBMARINE-629. [E2E_Test]
Improve environmentIT.java
This is an automated email from the ASF dual-hosted git repository.
liuxun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git
The following commit(s) were added to refs/heads/master by this push:
new c93016a SUBMARINE-629. [E2E_Test] Improve environmentIT.java
c93016a is described below
commit c93016a586e4cef54abfc36ad13ec3226f61e619
Author: kobe860219 <ko...@gmail.com>
AuthorDate: Mon Sep 21 18:47:08 2020 +0800
SUBMARINE-629. [E2E_Test] Improve environmentIT.java
### What is this PR for?
Improve environmentIT.java to e2e test for testing environment page.
### What type of PR is it?
[Improvement]
### Todos
### What is the Jira issue?
https://issues.apache.org/jira/browse/SUBMARINE-629
### How should this be tested?
https://travis-ci.org/github/kobe860219/submarine/builds/728949738
### Screenshots (if appropriate)
<img width="870" alt="ζͺε 2020-09-21 δΈε6 54 37" src="https://user-images.githubusercontent.com/48027290/93758986-f7453780-fc3b-11ea-893b-f05ee762a0c9.png">
### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No
Author: kobe860219 <ko...@gmail.com>
Closes #406 from kobe860219/SUBMARINE-629 and squashes the following commits:
12f57ff [kobe860219] SUBMARINE-629. [E2E_Test] Improve environmentIT.java
---
.../java/org/apache/submarine/integration/environmentIT.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/environmentIT.java b/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/environmentIT.java
index faa26dc..84f78e0 100644
--- a/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/environmentIT.java
+++ b/submarine-test/test-e2e/src/test/java/org/apache/submarine/integration/environmentIT.java
@@ -60,5 +60,15 @@ public class environmentIT extends AbstractSubmarineIT {
// Test create new environment
LOG.info("Create new environment");
pollingWait(By.xpath("//button[@id='createEnvironment']"), MAX_BROWSER_TIMEOUT_SEC).click();
+ pollingWait(By.cssSelector("input[ng-reflect-name='environmentName']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("testEnvName");
+ pollingWait(By.cssSelector("input[ng-reflect-name='dockerImage']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("testDockerImage");
+ pollingWait(By.cssSelector("input[ng-reflect-name='name']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("testName");
+ pollingWait(By.xpath("//button[@id='addChannel-btn']"), MAX_BROWSER_TIMEOUT_SEC).click();
+ pollingWait(By.xpath("//input[@id='channel0']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("testChannel");
+ pollingWait(By.xpath("//button[@id='addDep-btn']"), MAX_BROWSER_TIMEOUT_SEC).click();
+ pollingWait(By.xpath("//input[@id='dependencies0']"), MAX_BROWSER_TIMEOUT_SEC).sendKeys("testDep");
+ pollingWait(By.xpath("//button[@id='go']"), MAX_BROWSER_TIMEOUT_SEC).click();
+ Assert.assertEquals(pollingWait(By.xpath("//td[contains(., 'testEnvName')]"), MAX_BROWSER_TIMEOUT_SEC).isDisplayed(), true);
+ Thread.sleep(2000);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org