コード例 #1
0
        public void Can_FloodFill_Applicant_Parental_Addressee_With_Override_Not_Checked()
        {
            lock (_commonObject)
            {
                string firstSalutationName;
                string lastSalutationName;
                string firstAddresseeName;
                string lastAddresseeName;

                //Arrange
                DataPackage dataPackage = GetDataPackage("BU_APP_PSA_T1", out firstSalutationName, out lastSalutationName,
                                                         out firstAddresseeName, out lastAddresseeName);
                using (new DataSetup(purgeBeforeInsert: false, purgeAfterTest: false, packages: dataPackage))
                {
                    NavigateToBulkUpdateApplicantParentalSalutationDetailScreen();

                    //Act
                    ParentalSalutationAndAddresseeDetail.ExecuteJavaScriptToBulkSelectParentalAddressee();

                    SeleniumHelper.WaitForElementClickableThenClick(
                        ParentalSalutationAndAddresseeDetail.ParentalAddresseeFloodFillGenerateForSelected);

                    IWebElement IsDirtyIndicator = SeleniumHelper.Get(ParentalSalutationAndAddresseeDetail.IsDirtyIndicator);

                    //Assert
                    Assert.IsFalse(IsDirtyIndicator.Displayed);
                }
            }
        }
コード例 #2
0
        public void Can_FloodFill_Pupil_Parental_Addressee_With_Override_Not_Checked()
        {
            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();
                        verifyBeforeActAddresseeCells();

                        //Act
                        ParentalSalutationAndAddresseeDetail.ExecuteJavaScriptToBulkSelectParentalAddressee();
                        Wait.WaitForAjaxReady(By.ClassName("locking-mask"));
                        IWebElement applyToSelected = SeleniumHelper.Get(ParentalSalutationAndAddresseeDetail.ParentalAddresseeFloodFillGenerateForSelected);
                        applyToSelected.Click();
                        Wait.WaitForAjaxReady(By.ClassName("locking-mask"));
                        IWebElement IsDirtyIndicator = SeleniumHelper.Get(ParentalSalutationAndAddresseeDetail.IsDirtyIndicator);

                        //Assert
                        Assert.IsFalse(IsDirtyIndicator.Displayed);
                    }
                }
                finally
                {
                    //
                }
            }
        }
コード例 #3
0
        public void Can_FloodFill_Applicant_Parental_Addressee()
        {
            lock (_commonObject)
            {
                string firstSalutationName;
                string lastSalutationName;
                string firstAddresseeName;
                string lastAddresseeName;

                //Arrange
                DataPackage dataPackage = GetDataPackage("BU_APP_PSA_T3", out firstSalutationName, out lastSalutationName,
                                                         out firstAddresseeName, out lastAddresseeName);
                using (new DataSetup(purgeBeforeInsert: false, purgeAfterTest: false, packages: dataPackage))
                {
                    NavigateToBulkUpdateApplicantParentalSalutationDetailScreen();

                    //Act
                    ParentalSalutationAndAddresseeDetail.DeleteParentalAddresseeColumnValues();

                    ParentalSalutationAndAddresseeDetail.ExecuteJavaScriptToBulkSelectParentalAddressee();

                    ParentalSalutationAndAddresseeDetail.FloodFillAddresseeColumnWithOverride();

                    //Assert
                    var cells = ParentalSalutationAndAddresseeDetail.GetCellText(DefaultAddresseeColumn);
                    Assert.AreEqual(cells[0], firstAddresseeName);
                    Assert.AreEqual(cells[1], lastAddresseeName);

                    IWebElement IsDirtyIndicator = SeleniumHelper.Get(ParentalSalutationAndAddresseeDetail.IsDirtyIndicator);
                    Assert.IsTrue(IsDirtyIndicator.Displayed);
                }
            }
        }
コード例 #4
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
                {
                    //
                }
            }
        }