|
|
@ -34,18 +34,18 @@ import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
|
|
|
@Getter |
|
|
|
@Getter |
|
|
|
public final class WorkflowDefinitionTab extends NavBarPage implements ProjectDetailPage.Tab { |
|
|
|
public final class WorkflowDefinitionTab extends NavBarPage implements ProjectDetailPage.Tab { |
|
|
|
@FindBy(id = "button-create-process") |
|
|
|
@FindBy(id = "btnCreateProcess") |
|
|
|
private WebElement buttonCreateProcess; |
|
|
|
private WebElement buttonCreateProcess; |
|
|
|
@FindBy(className = "select-all") |
|
|
|
@FindBy(className = "select-all") |
|
|
|
private WebElement checkBoxSelectAll; |
|
|
|
private WebElement checkBoxSelectAll; |
|
|
|
@FindBy(className = "button-delete-all") |
|
|
|
@FindBy(className = "btn-delete-all") |
|
|
|
private WebElement buttonDeleteAll; |
|
|
|
private WebElement buttonDeleteAll; |
|
|
|
@FindBys({ |
|
|
|
@FindBys({ |
|
|
|
@FindBy(className = "el-popconfirm"), |
|
|
|
@FindBy(className = "el-popconfirm"), |
|
|
|
@FindBy(className = "el-button--primary"), |
|
|
|
@FindBy(className = "el-button--primary"), |
|
|
|
}) |
|
|
|
}) |
|
|
|
private List<WebElement> buttonConfirm; |
|
|
|
private List<WebElement> buttonConfirm; |
|
|
|
@FindBy(className = "rows-workflow-definitions") |
|
|
|
@FindBy(className = "items") |
|
|
|
private List<WebElement> workflowList; |
|
|
|
private List<WebElement> workflowList; |
|
|
|
|
|
|
|
|
|
|
|
public WorkflowDefinitionTab(RemoteWebDriver driver) { |
|
|
|
public WorkflowDefinitionTab(RemoteWebDriver driver) { |
|
|
@ -88,7 +88,7 @@ public final class WorkflowDefinitionTab extends NavBarPage implements ProjectDe |
|
|
|
final Supplier<List<WebElement>> cancelButtons = () -> |
|
|
|
final Supplier<List<WebElement>> cancelButtons = () -> |
|
|
|
workflowList() |
|
|
|
workflowList() |
|
|
|
.stream() |
|
|
|
.stream() |
|
|
|
.flatMap(it -> it.findElements(By.className("button-cancel-publish")).stream()) |
|
|
|
.flatMap(it -> it.findElements(By.className("btn-cancel-publish")).stream()) |
|
|
|
.filter(WebElement::isDisplayed) |
|
|
|
.filter(WebElement::isDisplayed) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
|
|
|