Commit 4dff007d authored by holivier's avatar holivier

PartyFjs test: end of added contactMech test

parent ba9cb55f
......@@ -74,19 +74,21 @@ public class PartyMgmtFjs extends SimpleTestSuite{
* <li>ContactMechType.WEB_ADDR</li>
* <li>ContactMechType.FTP_ADDR</li>
* </ul></li>
* <li>test expire button and "Show old" button<ul>
* <li>Create a second Telecom Number (with purpose) with {@link PartyFjsScreens#addContactMech PartyFjsScreens.addContactMech}</li>
* <li>check it with {@link PartyFjsScreens#checkContactMech PartyFjsScreens.checkContactMech}</li>
* <li>expire it with {@link PartyFjsScreens#expireContactMech PartyFjsScreens.expireContactMech}</li>
* <li>check if it's no more present with {@link PartyFjsScreens#checkNbContactMechType PartyFjsScreens.checkNbContactMechType}</li>
* <li>click on "Show Old" button with {@link PartyFjsScreens#showOld PartyFjsScreens.showOld}</li>
* <li>check if it'present with message "Effective Through" with {@link PartyFjsScreens#checkContactMechExpire PartyFjsScreens.checkContactMechExpire}</li>
* </ul></li>
* <li>click on SUMMARY button and check no IP_ADDR appear with {@link PartyFjsScreens#checkNbContactMechType PartyFjsScreens.checkNbContactMechType}</li>
* </ul></li>
*
*
*
*
*
* <li>Create a new work number<ul>
* <li>Change the number and add a purpose</li>
* <li>Check the modifs</li>
* <li>Deactivate the number</li>
* </ul>
* </li>
* <li>Delete the unactive adress and numbers</li>
* </ul><li>
* <li>detail()</li>
* <li>identificationNumber()</li>
* <li>notes()</li>
......@@ -247,13 +249,17 @@ public class PartyMgmtFjs extends SimpleTestSuite{
PartyFjsScreens.addContactMech(this, ContactMechType.FTP_ADDR, contactMech, null);
PartyFjsScreens.checkContactMech(this, ContactMechType.FTP_ADDR, contactMech, 1);
// add a second phone number
// TODO test after expired button the showOld button
// add a second phone number, expire it and test showOld button
contactMech = testCaseData.getDataObj("telecomNumber2");
PartyFjsScreens.addContactMech(this, ContactMechType.TELECOM_NUMBER, contactMech, null);
PartyFjsScreens.checkContactMech(this, ContactMechType.TELECOM_NUMBER, contactMech, 2);
PartyFjsScreens.expireContactMech(this, ContactMechType.TELECOM_NUMBER, 2, null);
// TODO test Show More
PartyFjsScreens.checkNbContactMechType(this, ContactMechType.TELECOM_NUMBER, 1);
PartyFjsScreens.showOld(this);
PartyFjsScreens.checkContactMechExpire(this, ContactMechType.TELECOM_NUMBER, contactMech, 2);
// test Summary
PartyFjsScreens.showSummary(this);
PartyFjsScreens.checkNbContactMechType(this, ContactMechType.IP_ADDR, 0);
// TODO test configuration with displayParam (so an other portlet) and param about state
// test ShowMore button after add contact mech (postal Address)
// TODO test useState and link between country and state
......
......@@ -90,7 +90,7 @@
<bool name="binaryTransfer" value="true"/><!-- true for selected -->
</data-obj>
<data-obj name="telecomNumber2">
<string name="number" value="02 34 56 78 90 "/>
<string name="number" value="02 34 56 78 90"/>
<string name="purpose" value="Main Home Phone Number"/>
</data-obj>
</test-case>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment