Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Jan 17, 2020
2 parents 2bebf83 + 16c6825 commit 5419c2f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
Expand Up @@ -1365,7 +1365,7 @@ public static String getDisplayNameOrName(ObjectReferenceType ref, boolean trans
return null;
}
String displayName = getDisplayName(ref, translate);
return displayName != null ? displayName : getName(ref);
return StringUtils.isNotEmpty(displayName) ? displayName : getName(ref,translate);
}

// <display-name> (<name>) OR simply <name> if there's no display name
Expand Down
Expand Up @@ -115,7 +115,7 @@ public void test110isCaseCreated(){
@Test (dependsOnMethods = {"test110isCaseCreated"})
public void test120approveCaseAction() {
AllRequestsPage allRequestsPage = basicPage.listAllRequests();
allRequestsPage
ChildrenCaseTable childrenCaseTable = allRequestsPage
.table()
.search()
.byName()
Expand All @@ -124,7 +124,12 @@ public void test120approveCaseAction() {
.and()
.clickByPartialName(REQUEST_CASE_NAME + CASE_CREATION_TEST_USER_NAME)
.selectTabChildren()
.table()
.table();
childrenCaseTable.search()
.byName()
.inputValue(ASSIGNING_ROLE_CASE_NAME + CASE_CREATION_TEST_USER_NAME)
.updateSearch();
childrenCaseTable
.clickByPartialName(ASSIGNING_ROLE_CASE_NAME + CASE_CREATION_TEST_USER_NAME)
.selectTabWorkitems()
.table()
Expand Down Expand Up @@ -155,7 +160,7 @@ public void test130rejectCaseAction() {
createUserAndAssignRoleWithApprovement(REJECT_WORKITEM_TEST_USER_NAME);

AllRequestsPage allRequestsPage = basicPage.listAllRequests();
allRequestsPage
ChildrenCaseTable childrenCaseTable = allRequestsPage
.table()
.search()
.byName()
Expand All @@ -164,8 +169,12 @@ public void test130rejectCaseAction() {
.and()
.clickByPartialName(REQUEST_CASE_NAME + REJECT_WORKITEM_TEST_USER_NAME)
.selectTabChildren()
.table()
.clickByPartialName(ASSIGNING_ROLE_CASE_NAME + REJECT_WORKITEM_TEST_USER_NAME)
.table();
childrenCaseTable.search()
.byName()
.inputValue(ASSIGNING_ROLE_CASE_NAME + REJECT_WORKITEM_TEST_USER_NAME)
.updateSearch();
childrenCaseTable.clickByPartialName(ASSIGNING_ROLE_CASE_NAME + REJECT_WORKITEM_TEST_USER_NAME)
.selectTabWorkitems()
.table()
.clickByName(ASSIGNING_ROLE_CASE_NAME + REJECT_WORKITEM_TEST_USER_NAME)
Expand Down Expand Up @@ -205,7 +214,7 @@ public void test140forwardCaseAction() {
Selenide.sleep(MidPoint.TIMEOUT_MEDIUM_6_S);

AllRequestsPage allRequestsPage = basicPage.listAllRequests();
WorkitemDetailsPanel<CasePage> workitemDetailsPanel = allRequestsPage
ChildrenCaseTable childrenCaseTable = allRequestsPage
.table()
.search()
.byName()
Expand All @@ -214,7 +223,12 @@ public void test140forwardCaseAction() {
.and()
.clickByPartialName(REQUEST_CASE_NAME + FORWARD_WORKITEM_TEST_USER_NAME)
.selectTabChildren()
.table()
.table();
childrenCaseTable.search()
.byName()
.inputValue(ASSIGNING_ROLE_CASE_NAME + FORWARD_WORKITEM_TEST_USER_NAME)
.updateSearch();
WorkitemDetailsPanel<CasePage> workitemDetailsPanel = childrenCaseTable
.clickByPartialName(ASSIGNING_ROLE_CASE_NAME + FORWARD_WORKITEM_TEST_USER_NAME)
.selectTabWorkitems()
.table()
Expand Down

0 comments on commit 5419c2f

Please sign in to comment.