Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 7337c71b authored by Sonali MOHANTY's avatar Sonali MOHANTY
Browse files

method name is updated and the log statement is also updated.

parent 98677238
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ public class GenericSelect extends PageComponent {
return true;
}
public boolean selectWithIndex(int index){
log.info("selecting first option");
log.info("selecting the required option");
List<WebElement> options = getOptions();
WebElement option = options.get(index);
......
......@@ -85,11 +85,11 @@ public class ServiceMetadataPopup extends PageComponent {
}
public String docIDFieldContain(){
public String docIDFieldValue(){
return documentIdentifierInput.getAttribute("value");
}
public String docIDSchemeFieldContain(){
public String docIDSchemeFieldValue(){
return documentSchemeInput.getAttribute("value");
}
......
......@@ -6,7 +6,6 @@ import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory;
import pages.components.baseComponents.PageComponent;
import utils.Generator;
import utils.PROPERTIES;
import java.io.File;
......@@ -48,11 +47,11 @@ public class ServiceMetadataWizardPopup extends PageComponent {
private WebElement certificateDescriptionBox;
public String docIDFieldContain(){
public String docIDFieldValue(){
return docIdField.getAttribute("value");
}
public String docIDSchemeFieldContain(){
public String docIDSchemeFieldValue(){
return docIdSchemeField.getAttribute("value");
}
......
......@@ -384,8 +384,8 @@ public class EditPgTest extends BaseTest {
ServiceMetadataPopup metadataPopup= row0.clickAddMetadata();
soft.assertTrue(!metadataPopup.isParticipantIdentifierEnabled(),"participantId field is enabled for an existing service group in service metadata popup");
soft.assertTrue(!metadataPopup.isParticipantSchemeEnabled(),"participantScheme field is enabled for an existing service group in service metadata popup");
soft.assertEquals(metadataPopup.docIDFieldContain(),"","docIDField is not empty");
soft.assertEquals(metadataPopup.docIDSchemeFieldContain(),"","docIDField is not empty");
soft.assertEquals(metadataPopup.docIDFieldValue(),"","docIDField is not empty");
soft.assertEquals(metadataPopup.docIDSchemeFieldValue(),"","docIDField is not empty");
soft.assertTrue(row0.getParticipantIdentifier().equalsIgnoreCase(metadataPopup.getParticipantIdentifierValue()), "ServiceMetadata dialog opened for appropriate service group");
soft.assertTrue(row0.getParticipantScheme().equalsIgnoreCase(metadataPopup.getParticipantSchemeValue()), "ServiceMetadata dialog opened for appropriate service group");
metadataPopup.fillForm(generator,generator,generator);
......@@ -394,8 +394,8 @@ public class EditPgTest extends BaseTest {
metadataWizaedPopup.fillCerificateBox(generator);
soft.assertTrue(metadataWizaedPopup.isEnableOkBtn(),"ok button is disabled after providing the valid data");
metadataPopup = metadataWizaedPopup.clickOK();
soft.assertEquals(metadataPopup.docIDFieldContain(),generator,"After saving the servicemetadata wizard popup with valid data the docID field of service metadata popup doc id contain the coressponding value");
soft.assertEquals(metadataPopup.docIDSchemeFieldContain(),generator,"After saving the servicemetadata wizard popup with valid data the docIDScheme field of service metadata popup doc id scheme contain the coressponding value");
soft.assertEquals(metadataPopup.docIDFieldValue(),generator,"After saving the servicemetadata wizard popup with valid data the docID field of service metadata popup doc id contain the coressponding value");
soft.assertEquals(metadataPopup.docIDSchemeFieldValue(),generator,"After saving the servicemetadata wizard popup with valid data the docIDScheme field of service metadata popup doc id scheme contain the coressponding value");
soft.assertTrue(metadataPopup.isOKBtnEnabled(),"OK button is not enabled");
soft.assertAll();
......@@ -414,8 +414,8 @@ public class EditPgTest extends BaseTest {
soft.assertTrue(!metadataPopup.isParticipantSchemeEnabled(),"participantScheme field is enabled for an existing service group in service metadata popup");
metadataPopup.fillForm(generator,generator,generator);
ServiceMetadataWizardPopup metadataWizard= metadataPopup.clickMetadataWizard();
soft.assertEquals(metadataWizard.docIDFieldContain(),generator,"document identifier field of metdata wizard popup not contain the corresponding doc id filled in sevice metadata popup");
soft.assertEquals(metadataWizard.docIDSchemeFieldContain(),generator,"document identifier field of metdata wizard popup not contain the corresponding doc id scheme filled in sevice metadata popup");
soft.assertEquals(metadataWizard.docIDFieldValue(),generator,"document identifier field of metdata wizard popup not contain the corresponding doc id filled in sevice metadata popup");
soft.assertEquals(metadataWizard.docIDSchemeFieldValue(),generator,"document identifier field of metdata wizard popup not contain the corresponding doc id scheme filled in sevice metadata popup");
soft.assertAll();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment