Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed Mar 26, 2024
1 parent 0abf045 commit e6baeb9
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public String createProcess() throws Exception {
.atMost(3, TimeUnit.SECONDS).ignoreExceptions()
.until(() -> docTypeSelect.findElement(By.cssSelector(CSS_SELECTOR_DROPDOWN_TRIGGER)).isEnabled());
clickElement(docTypeSelect.findElement(By.cssSelector(CSS_SELECTOR_DROPDOWN_TRIGGER)));
clickElement(Browser.getDriver().findElement(By.id(docTypeSelect.getAttribute("id") + "_3")));
clickElement(Browser.getDriver().findElement(By.id(docTypeSelect.getAttribute("id") + "_2")));
await("Page ready").pollDelay(150, TimeUnit.MILLISECONDS).atMost(10, TimeUnit.SECONDS).ignoreExceptions()
.until(() -> isDisplayed.test(processFromTemplateTabView));

Expand Down Expand Up @@ -195,14 +195,11 @@ public String createProcessAsChild(String parentProcessTitle) throws Exception {
.atMost(3, TimeUnit.SECONDS).ignoreExceptions()
.until(() -> docTypeSelect.findElement(By.cssSelector(CSS_SELECTOR_DROPDOWN_TRIGGER)).isEnabled());
clickElement(docTypeSelect.findElement(By.cssSelector(CSS_SELECTOR_DROPDOWN_TRIGGER)));
clickElement(Browser.getDriver().findElement(By.id(docTypeSelect.getAttribute("id") + "_3")));
clickElement(Browser.getDriver().findElement(By.id(docTypeSelect.getAttribute("id") + "_0")));
await("Page ready").pollDelay(150, TimeUnit.MILLISECONDS).atMost(10, TimeUnit.SECONDS).ignoreExceptions()
.until(() -> isDisplayed.test(processFromTemplateTabView));

titleInput.sendKeys("TestProcessChild");
titleSortInput.sendKeys("TestProcessChild");
ppnAnalogInput.sendKeys("123456");
ppnDigitalInput.sendKeys("123456");

generateTitleButton.click();
await("Wait for title generation").pollDelay(3, TimeUnit.SECONDS).atMost(10, TimeUnit.SECONDS)
Expand Down

0 comments on commit e6baeb9

Please sign in to comment.