Skip to content

Commit

Permalink
adding change time tests to suite, some small changes (MID-6085)
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 6, 2020
1 parent 3429097 commit b903c19
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public DatePanel(String id, IModel<XMLGregorianCalendar> model) {
super(id);

DateInput date = new DateInput(ID_INPUT, new XmlGregorianCalendarModel(model));
date.setOutputMarkupId(true);
add(date);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ protected void onInitialize() {
add(form);

DatePanel offset = new DatePanel(ID_OFFSET, getModel());
for (FormComponent<?> formComponent : offset.getFormComponents()) {
formComponent.add(new EmptyOnBlurAjaxFormUpdatingBehaviour());
}
form.add(offset);

AjaxSubmitButton saveButton = new AjaxSubmitButton(ID_BUTTON_SAVE, createStringResource("PageInternals.button.changeTime")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void cleanup() {
}

@Test
public void changeTime() {
public void test001changeTime() {
ClockTab clockTab = configPage.clockTab();

clockTab.changeTime("5/15/2099", "10", "30", ClockTab.AmOrPmChoice.PM);
Expand All @@ -51,7 +51,7 @@ public void changeTime() {
}

@Test
public void resetTime() {
public void test010resetTime() {
ClockTab clockTab = configPage.clockTab();

clockTab.resetTime();
Expand Down
5 changes: 5 additions & 0 deletions testing/schrodingertest/testng-integration-schrodinger.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@
<class name="com.evolveum.midpoint.testing.schrodinger.page.QueryPlaygroundPageTest"/>
</classes>
</test>
<test name="Schrodinger.page.InternalsConfigurationPageTest" preserve-order="true" parallel="false" verbose="3" enabled="true">
<classes>
<class name="com.evolveum.midpoint.testing.schrodinger.page.InternalsConfigurationPageTest"/>
</classes>
</test>
</suite>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
package com.evolveum.midpoint.schrodinger.component.configuration;

import com.codeborne.selenide.Condition;
import com.codeborne.selenide.Selenide;
import com.codeborne.selenide.SelenideElement;
import com.evolveum.midpoint.schrodinger.MidPoint;
import com.evolveum.midpoint.schrodinger.component.Component;
Expand Down Expand Up @@ -36,10 +37,12 @@ public void changeTime(String date, String hours, String minutes, AmOrPmChoice a

SelenideElement hoursEle = findHours();
hoursEle.doubleClick();
hoursEle.doubleClick();
hoursEle.sendKeys(hours);

SelenideElement minutesEle = findMinutes();
minutesEle.doubleClick();
minutesEle.doubleClick();
minutesEle.sendKeys(minutes);

SelenideElement amOrPmChoiceEle = findAmOrPmChoice();
Expand Down

0 comments on commit b903c19

Please sign in to comment.