public void ModifyValidCustomer(CustomerManagementData input) { string Name = "CustomerForModifyFieldsValid1"; CustomerManageSetting.FocusOnCustomer(Name); TimeManager.LongPause(); CustomerManageSetting.ClickUpdateCustomer(); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.ShortPause(); CustomerManageSetting.FillInName(input.InputData.CommonName); CustomerManageSetting.FillInCode(input.InputData.Code); CustomerManageSetting.FillInAddress(input.InputData.Address); CustomerManageSetting.FillInResponsiblePerson(input.InputData.RealName); CustomerManageSetting.FillInTelephone(input.InputData.Telephone); CustomerManageSetting.FillInEmail(input.InputData.Email); CustomerManageSetting.FillInComments(input.InputData.Comments); TimeManager.ShortPause(); CustomerManageSetting.ClickSaveButton(); JazzMessageBox.LoadingMask.WaitLoading(); TimeManager.LongPause(); TimeManager.LongPause(); TimeManager.LongPause(); //Verify modify customer is exist. //Assert.IsTrue(CustomerManageSetting.IsCustomerOnList(input.ExpectedData.CommonName)); TimeManager.LongPause(); //Verify modify success Assert.AreEqual(CustomerManageSetting.GetNameValue(), input.ExpectedData.CommonName); Assert.AreEqual(CustomerManageSetting.GetCodeValue(), input.ExpectedData.Code); Assert.AreEqual(CustomerManageSetting.GetAddressValue(), input.ExpectedData.Address); Assert.AreEqual(CustomerManageSetting.GetResponsiblePersonValue(), input.ExpectedData.RealName); Assert.AreEqual(CustomerManageSetting.GetTelephoneValue(), input.ExpectedData.Telephone); Assert.AreEqual(CustomerManageSetting.GetEmailValue(), input.ExpectedData.Email); Assert.AreEqual(CustomerManageSetting.GetCommentsValue(), input.ExpectedData.Comments); //Verify Save button disappear Assert.IsFalse(CustomerManageSetting.IsSaveButtonDisplayed()); //Verify Customer Manager exist as before //Assert.AreEqual(CustomerManageSetting.GetCustomerAdminTexts(), input.ExpectedData.CustomerAdmin); }