Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06dfcac
commit d6f8e06
Showing
13 changed files
with
179 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
testing/schrodingertest/src/test/resources/role-with-admin-approver.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<role oid="00000001-0001-0001-0001-000000000001" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"> | ||
<name>Role with admin approver</name> | ||
<assignment> | ||
<policyRule> | ||
<policyConstraints> | ||
<assignment> | ||
<operation>add</operation> | ||
</assignment> | ||
</policyConstraints> | ||
<policyActions> | ||
<approval> | ||
<approverRef oid="00000000-0000-0000-0000-000000000002" type="UserType"/> | ||
</approval> | ||
</policyActions> | ||
</policyRule> | ||
</assignment> | ||
</role> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
tools/schrodinger/src/main/java/com/evolveum/midpoint/schrodinger/page/cases/CasePage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright (c) 2010-2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.schrodinger.page.cases; | ||
|
||
import com.codeborne.selenide.Condition; | ||
import com.codeborne.selenide.SelenideElement; | ||
import com.evolveum.midpoint.schrodinger.MidPoint; | ||
import com.evolveum.midpoint.schrodinger.component.AssignmentHolderBasicTab; | ||
import com.evolveum.midpoint.schrodinger.component.AssignmentsTab; | ||
import com.evolveum.midpoint.schrodinger.page.AssignmentHolderDetailsPage; | ||
|
||
/** | ||
* Created by Kate Honchar. | ||
*/ | ||
public class CasePage extends AssignmentHolderDetailsPage { | ||
|
||
@Override | ||
public AssignmentHolderBasicTab<CasePage> selectTabBasic(){ | ||
SelenideElement element = findTabPanel().clickTab("pageAdminFocus.basic") | ||
.waitUntil(Condition.appear, MidPoint.TIMEOUT_DEFAULT_2_S); | ||
|
||
return new AssignmentHolderBasicTab<CasePage>(this, element); | ||
} | ||
|
||
@Override | ||
public AssignmentsTab<CasePage> selectTabAssignments(){ | ||
SelenideElement element = findTabPanel().clickTab("pageAdminFocus.assignments"); | ||
|
||
return new AssignmentsTab<CasePage>(this, element); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...chrodinger/src/main/java/com/evolveum/midpoint/schrodinger/page/cases/CasesListTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Copyright (c) 2010-2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.schrodinger.page.cases; | ||
|
||
import com.codeborne.selenide.SelenideElement; | ||
import com.evolveum.midpoint.schrodinger.component.assignmentholder.AssignmentHolderObjectListTable; | ||
import com.evolveum.midpoint.schrodinger.page.user.ListUsersPage; | ||
import com.evolveum.midpoint.schrodinger.page.user.UserPage; | ||
|
||
/** | ||
* Created by Kate Honchar. | ||
*/ | ||
public class CasesListTable extends AssignmentHolderObjectListTable<CasesPage, CasePage> { | ||
|
||
public CasesListTable(CasesPage parent, SelenideElement parentElement){ | ||
super(parent, parentElement); | ||
} | ||
|
||
@Override | ||
public CasePage getObjectDetailsPage(){ | ||
return new CasePage(); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
tools/schrodinger/src/main/java/com/evolveum/midpoint/schrodinger/page/cases/CasesPage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright (c) 2010-2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.schrodinger.page.cases; | ||
|
||
import com.evolveum.midpoint.schrodinger.component.assignmentholder.AssignmentHolderObjectListPage; | ||
|
||
/** | ||
* Created by Kate Honchar | ||
*/ | ||
public class CasesPage extends AssignmentHolderObjectListPage<CasesListTable> { | ||
|
||
@Override | ||
public CasesListTable table() { | ||
return new CasesListTable(this, getTableBoxElement()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters