Skip to content

Commit

Permalink
adding TestPageRole to suite (MID-6092)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 6, 2020
1 parent 8fddb36 commit 8041410
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Expand Up @@ -16,6 +16,7 @@
import com.evolveum.midpoint.web.AbstractInitializedGuiIntegrationTest;
import com.evolveum.midpoint.web.page.admin.roles.AbstractRoleMemberPanel;
import com.evolveum.midpoint.web.page.admin.roles.PageRole;
import com.evolveum.midpoint.web.page.admin.users.PageOrgUnit;
import com.evolveum.midpoint.web.util.OnePageParameterEncoder;
import com.evolveum.midpoint.xml.ns._public.common.common_3.RoleType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType;
Expand Down Expand Up @@ -56,7 +57,12 @@ public void initSystem(Task initTask, OperationResult initResult) throws Excepti
}

@Test
public void test001testAddNewRole() throws Exception {
public void test001testPageRole() {
renderPage(PageRole.class);
}

@Test
public void test002testAddNewRole() throws Exception {
renderPage(PageRole.class);

FormTester formTester = tester.newFormTester(MAIN_FORM, false);
Expand All @@ -74,7 +80,7 @@ public void test001testAddNewRole() throws Exception {
* MID-6092
*/
@Test
public void test002testMembers() throws Exception {
public void test003testMembers() throws Exception {
// GIVEN
PrismObject<RoleType> role1 = createObject(RoleType.class, "Role0001");
PrismObject<RoleType> role2 = createObject(RoleType.class, "Role0002");
Expand Down
1 change: 1 addition & 0 deletions gui/admin-gui/testng-integration.xml
Expand Up @@ -19,6 +19,7 @@
<class name="com.evolveum.midpoint.gui.TestPageAccount"/>
<class name="com.evolveum.midpoint.gui.TestPageOrg"/>
<class name="com.evolveum.midpoint.gui.TestPageSystemConfiguration"/>
<class name="com.evolveum.midpoint.gui.TestPageRole"/>
</classes>
</test>
<test name="Wrapper Integration" preserve-order="true" parallel="false" verbose="10">
Expand Down

0 comments on commit 8041410

Please sign in to comment.