Exemple #1
0
        public void Can_Update_individual_Parental_Addressee()
        {
            lock (_lockObject)
            {
                try
                {
                    //Arrange
                    DataPackage dataPackage = GetDataPackage("BU_PUP_PSA_T3", 3);
                    using (new DataSetup(purgeBeforeInsert: false, purgeAfterTest: false, packages: dataPackage))
                    {
                        Select_Year_And_NavigateToBulkUpdateDetailScreen();
                        verifyBeforeActAddresseeCells();

                        //Act
                        ParentalSalutationAndAddresseeDetail.DeletePupilParentalAddresseeColumnValues();
                        ParentalSalutationAndAddresseeDetail.ClickFirstCellofColumn(DefaultAddresseeColumn);
                        Wait.WaitForAjaxReady(By.ClassName("locking-mask"));
                        ParentalSalutationAndAddresseeDetail.ExecuteJavaScriptToBulkParentalAddresseeFloodFillMenuClick();
                        Wait.WaitForAjaxReady(By.ClassName("locking-mask"));
                        ParentalSalutationAndAddresseeDetail.FloodFillAddresseeColumnWithOverride();

                        //Assert
                        var cells = (ParentalSalutationAndAddresseeDetail.GetCellText(DefaultAddresseeColumn));
                        Assert.IsTrue(cells[0] == FirstAddresseeName);
                        IWebElement IsDirtyIndicator = SeleniumHelper.Get(ParentalSalutationAndAddresseeDetail.IsDirtyIndicator);
                        Assert.IsTrue(IsDirtyIndicator.Displayed);
                    }
                }
                finally
                {
                    //
                }
            }
        }
Exemple #2
0
        public void Can_FloodFill_Pupil_Parental_Addressee()
        {
            lock (_lockObject)
            {
                try
                {
                    //Arrange
                    DataPackage dataPackage = GetDataPackage("BU_PUP_PSA_T2", 15);
                    using (new DataSetup(purgeBeforeInsert: false, purgeAfterTest: false, packages: dataPackage))
                    {
                        Select_Year_And_NavigateToBulkUpdateDetailScreen();
                        verifyBeforeActAddresseeCells();

                        //Act
                        ParentalSalutationAndAddresseeDetail.DeletePupilParentalAddresseeColumnValues();
                        ParentalSalutationAndAddresseeDetail.ExecuteJavaScriptToBulkSelectParentalAddressee();
                        ParentalSalutationAndAddresseeDetail.FloodFillAddresseeColumnWithOverride();

                        //Assert
                        verifyAfterActAddresseeCells();
                    }
                }
                finally
                {
                    //
                }
            }
        }