Skip to content

Commit

Permalink
MID-7442 new system configuration UI, fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Feb 16, 2022
1 parent 9ff06f2 commit 691279b
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,17 @@ public void test018testModifySystemConfig() throws Exception {
tester.executeAjaxEvent("container:additionalButtons:0:additionalButton:compositedButton", "click");
tester.assertRenderedPage(PageSystemConfigurationBasic.class);

tester.clickLink(MAIN_FORM_OLD + ":tabPanel:panel:basicSystemConfiguration:values:0:value:valueForm:valueContainer:input:propertiesLabel:showEmptyButton");
final String mainFormPath = "detailsView:mainForm";
final String descriptionPath = "mainPanel:properties:container:1:values:0:value:valueForm:valueContainer:input:propertiesLabel:properties:1:property:values:0:value:valueForm:valueContainer:input:input";

FormTester formTester = tester.newFormTester(MAIN_FORM_OLD, false);
tester.clickLink(mainFormPath + ":mainPanel:properties:container:1:values:0:value:valueForm:valueContainer:input:propertiesLabel:showEmptyButton");

FormTester formTester = tester.newFormTester(mainFormPath, false);
String des = "new description";
formTester.setValue(FORM_INPUT_DESCRIPTION, des);
formTester.setValue(descriptionPath, des);

formTester.submit(FORM_SAVE_OLD);
final String saveButton = "buttons:buttons:2";
formTester.submit(saveButton);

Thread.sleep(5000);

Expand Down

0 comments on commit 691279b

Please sign in to comment.