예제 #1
0
        public void Can_Modify_Individual_Pupil_Parental_Salutation()
        {
            lock (_lockObject)
            {
                try
                {
                    //Arrange
                    DataPackage dataPackage = GetDataPackage("BU_PUP_PSA_T4", 6);
                    using (new DataSetup(purgeBeforeInsert: false, purgeAfterTest: false, packages: dataPackage))
                    {
                        Select_Year_And_NavigateToBulkUpdateDetailScreen();
                        verifyBeforeActSalutationCells();

                        //Act
                        ParentalSalutationAndAddresseeDetail.DeletePupilParentalSalutationColumnValues();
                        ParentalSalutationAndAddresseeDetail.ClickFirstCellofColumn(DefaultSalutationColumn);
                        Wait.WaitForAjaxReady(By.ClassName("locking-mask-loading"));
                        ParentalSalutationAndAddresseeDetail.ExecuteJavaScriptToBulkParentalSalutationFloodFillMenuClick();
                        Wait.WaitForAjaxReady(By.ClassName("locking-mask-loading"));
                        ParentalSalutationAndAddresseeDetail.FloodFillSalutationColumnWithOverride();

                        //Assert
                        var cells = (ParentalSalutationAndAddresseeDetail.GetCellText(DefaultSalutationColumn));
                        Assert.IsTrue(cells[0] == FirstSalutationName);
                        IWebElement IsDirtyIndicator = SeleniumHelper.Get(ParentalSalutationAndAddresseeDetail.IsDirtyIndicator);
                        Assert.IsTrue(IsDirtyIndicator.Displayed);
                    }
                }
                finally
                {
                    //
                }
            }
        }