public void Product_SearchingStartsWithAsterisk() { storeResults = true; searchTerm = "*" + Test.extRef.Substring(1); product = new PO_ProductsPopUp(); product.SearchForProduct(searchTerm); Util.CheckIfTextPresented(Test.extRef); Test.result = "Passed"; }
public void Product_SearchingFullName() { storeResults = true; searchTerm = Test.extRef; product = new PO_ProductsPopUp(); product.SearchForProduct(searchTerm); Util.CheckIfTextPresented(Test.extRef); Test.result = "Passed"; }
public void Product_SearchingEndsWithAsterisk() { storeResults = true; searchTerm = Test.extRef.Remove(Test.extRef.Length - 3) + "*"; product = new PO_ProductsPopUp(); product.SearchForProduct(searchTerm); Util.CheckIfTextPresented(Test.extRef); Test.result = "Passed"; }
public void MTroduct_SearchingFullName() { storeResults = true; searchTerm = Test.extRef; Thread.Sleep(3000); product = PO_Dashboard.GoToProducts(); product.SearchForProduct(searchTerm); Util.CheckIfTextNotPresented(Test.extRef); Test.result = "Passed"; }
public void Product_SearchingEndsAndStartsWithAsterisk() { storeResults = true; string substracted = "*" + Test.extRef.Substring(1); searchTerm = substracted.Remove(substracted.Length - 2) + "*"; product = new PO_ProductsPopUp(); product.SearchForProduct(searchTerm); Util.CheckIfTextPresented(Test.extRef); Test.result = "Passed"; }
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(); }