Skip to content

Commit

Permalink
another test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Aug 30, 2021
1 parent 391c25b commit 1dfd899
Showing 1 changed file with 18 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

import java.io.File;

import com.evolveum.midpoint.web.component.assignment.AssignmentTablePanel;
import com.evolveum.midpoint.web.component.objectdetails.*;

import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.util.tester.FormTester;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -28,8 +31,6 @@
import com.evolveum.midpoint.schema.result.OperationResult;
import com.evolveum.midpoint.task.api.Task;
import com.evolveum.midpoint.web.AbstractInitializedGuiIntegrationTest;
import com.evolveum.midpoint.web.component.objectdetails.AssignmentHolderTypeDetailsTabPanel;
import com.evolveum.midpoint.web.component.objectdetails.ObjectHistoryTabPanel;
import com.evolveum.midpoint.web.page.admin.users.PageUser;
import com.evolveum.midpoint.web.util.OnePageParameterEncoder;
import com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType;
Expand Down Expand Up @@ -161,27 +162,36 @@ public void test013renderCasesTab() {
public void test014renderPersonasTab() {
renderPage();

clickOnTab(5);
clickOnTab(6);
String panel = "mainPanel:mainForm:tabPanel:panel";
tester.assertComponent(panel, AssignmentHolderTypeDetailsTabPanel.class);
tester.assertComponent(panel, FocusPersonasTabPanel.class);
}

@Test
public void test015renderDelegationsTab() {
renderPage();

clickOnTab(6);
clickOnTab(7);
String panel = "mainPanel:mainForm:tabPanel:panel";
tester.assertComponent(panel, AssignmentHolderTypeDetailsTabPanel.class);
tester.assertComponent(panel, UserDelegationsTabPanel.class);
}

@Test
public void test016renderDelegatedToMeTab() {
renderPage();

clickOnTab(7);
clickOnTab(8);
String panel = "mainPanel:mainForm:tabPanel:panel";
tester.assertComponent(panel, AssignmentTablePanel.class);
}

@Test
public void test017renderTriggersTab() {
renderPage();

clickOnTab(5);
String panel = "mainPanel:mainForm:tabPanel:panel";
tester.assertComponent(panel, AssignmentHolderTypeDetailsTabPanel.class);
tester.assertComponent(panel, FocusTriggersTabPanel.class);
}

private void clickOnTab(int order) {
Expand Down

0 comments on commit 1dfd899

Please sign in to comment.