public void TC14460_EMIRExtRefIn_LinkRef()
 {
     storeResults = true;
     PO_ManageExtRefIn manageRefIn = PO_Dashboard.GoToManageRefIns();
     manageRefIn.LinkRefIn("Valuation Source", "In House");
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticMappingsAwaitingApproval approvalQueue = dash.GoToStaticMappingsAwaitingApproval();
     approvalQueue.ApproveStaticMapping(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_ExtRefIn_PopUp createRefIns = PO_Dashboard.GoToExternalRefIns();
     createRefIns.SetTypeSelectField("Search_EMIRExtRefTypeSearch", "Valuation Source");
     createRefIns.SearchForExtRefIn(Test.extRef);
     Test.result = "Passed";
 }
 public void Counterparty_RejectCP4Eyes()
 {
     storeResults = true;
     PO_CounterParties_PopUp counterParties = PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.CreateNewCounterParty().Create();
     counterParties.VerifyCounterPartyIsCreated();
     counterParties.ClosePopUp();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.DeclineStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.VerifyCounterPartyIsNotFound();
     Test.result = "Passed";
 }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     Test.InitiateBrowser();
     PO_LoginPage login = new PO_LoginPage();
     login.LoginWithTenantA_EMIRUser();
     cp = PO_Dashboard.GoToCounterPartiesPopUp();
     cp.CreateNewCounterParty()
         .Create();
     cp.VerifyCounterPartyIsCreated();
     cp.ClosePopUp();
     PO_Dashboard.LogOff();
     login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithTenantB_EMIRUser01();
 }
 public void TC14461_Product_Reject4Eyes()
 {
     storeResults = true;
     PO_ProductsPopUp products = PO_Dashboard.GoToProducts();
     products.CreateNewProduct()
         .Create();
     products.VerifyProductIsCreated();
     products.CloseWindow();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.DeclineStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToProducts();
     products.VerifyCounterPartyIsNotFound();
     Test.result = "Passed";
 }
 public void Product_ViewDetails()
 {
     storeResults = true;
     PO_ProductsPopUp products = PO_Dashboard.GoToProducts();
     products.CreateNewProduct()
         .Create();
     products.VerifyProductIsCreated();
     products.CloseWindow();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToProducts();
     products.ViewDetails();
     Test.result = "Passed";
 }
 public void SetUp()
 {
     Test.SetTestName(TestContext);
     Test.LoginAsRegularUser();
     bic = EmirUtils.CreateBicCode();
     cp = PO_Dashboard.GoToCounterPartiesPopUp();
     cp.CreateNewCounterParty()
         .SetBicCode(bic)
         .Create();
     cp.VerifyCounterPartyIsCreated();
     cp.ClosePopUp();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToCounterPartiesPopUp();
 }
        public void Counterparty_IntragroupNotPresent()
        {
            Test.SetTestName(TestContext);
            Test.LoginAsSystemUser();
            cp = PO_Dashboard.GoToCounterPartiesPopUp();
            cp.CreateNewCounterParty()
                .Create();
            cp.VerifyCounterPartyIsCreated();
            cp.ClosePopUp();
            PO_Dashboard.LogOff();
            PO_LoginPage login = new PO_LoginPage();
            PO_Dashboard dash = login.LoginWithIEMIRUser2();
            PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
            approvalQueue.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();
            login.LoginWithRegularUser();
            PO_Dashboard.GoToCounterPartiesPopUp();

            PO_CounterParty_EditCP edit = cp.EditCounterParty();
            edit.VerifyIntragroupNotPresent();
        }
        public void SetUp()
        {
            Test.SetTestName(TestContext);
            Test.InitiateBrowser();
            PO_LoginPage login = new PO_LoginPage();
            login.LoginWithTenantA_EMIRUser();

            product = PO_Dashboard.GoToProducts();
            product.CreateNewProduct()
                .Create();
            product.VerifyProductIsCreated();
            product.CloseWindow();
            PO_Dashboard.LogOff();

            login = new PO_LoginPage();
            PO_Dashboard dash = login.LoginWithIEMIRUser2();
            PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
            approvalQueue.ApproveStaticEntitie(Test.extRef);
            PO_Dashboard.LogOff();

            login.LoginWithTenantB_EMIRUser01();
        }
 public void TC14457_Counterparty_EditCP_SetExternalID()
 {
     storeResults = true;
     Test.SetTestName(TestContext);
     Test.LoginAsRegularUser();
     PO_CounterParties_PopUp counterParties = PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.CreateNewCounterParty().Create();
     counterParties.VerifyCounterPartyIsCreated();
     counterParties.ClosePopUp();
     PO_Dashboard.LogOff();
     PO_LoginPage login = new PO_LoginPage();
     PO_Dashboard dash = login.LoginWithIEMIRUser2();
     PO_StaticEntitiesAwaitingApproval approvalQueue = dash.GoToStaticEntitiesAwaitingApproval();
     approvalQueue.ApproveStaticEntitie(Test.extRef);
     PO_Dashboard.LogOff();
     login.LoginWithRegularUser();
     PO_Dashboard.GoToCounterPartiesPopUp();
     counterParties.EditCounterParty()
         .SetCounterPartyInputField(CounterPartyInputFields.Counterparty_ExternalId, Util.GetRandomID())
         .Save();
     counterParties.VerifyCounterPartyIsCreated();
     Test.result = "Passed";
 }