public void GivenTheEditAdditionalServiceFormForFlatListPriceWithVariablePatientNumbersOrderTypeIsPresented()
        {
            var common = new CommonSteps(Test, Context);

            common.WhenTheOrderFormForTheExistingOrderIsPresented();
            ThenTheUserIsAbleToManageTheAdditionalServicesSection();
            GivenTheUserChoosesToEditTheSavedAdditionalService();
            Test.Pages.AdditionalServices.EditPageDisplayed();
            Test.Pages.OrderForm.DeleteSolutionButtonIsDisabled().Should().BeFalse();
        }
        public async Task GivenTheConfirmDeletePageIsDisplayed()
        {
            var commonSteps = new CommonSteps(Test, Context);
            await commonSteps.GivenAnIncompleteOrderExists();

            commonSteps.WhenTheOrderFormForTheExistingOrderIsPresented();

            var order = Context.Get <Order>(ContextKeys.CreatedOrder);

            order.SetLastUpdatedBy(order.LastUpdatedBy, order.LastUpdatedByName);

            WhenTheUserChoosesToDeleteTheOrder();
            ThenTheUserIsAskedToConfirmTheChoiceToDelete();
        }
        public void GivenIAmOnTheEditPriceForm()
        {
            var common = new CommonSteps(Test, Context);

            common.WhenTheOrderFormForTheExistingOrderIsPresented();
            try
            {
                GivenTheAvailablePricesForTheSelectedAdditionalServiceArePresented();
                GivenTheUserHasSelectedAAdditionalServicePrice();
            }
            catch
            {
            }

            GivenTheUserHasSelectedAServiceRecipient();
            common.WhenTheyChooseToContinue();
            Test.Pages.OrderForm.GetPageTitle().Should().ContainEquivalentOf("Planned delivery date");
            common.WhenTheyChooseToContinue();
        }
        public async Task GivenTheAdditionalServicesSectionIsNotCompleteAndNoServicesAreAdded()
        {
            var commonSteps = new CommonSteps(Test, Context);

            await commonSteps.SetOrderCatalogueSectionToComplete();
        }
 public void ThenTheServiceRecipientsArePresentedInAscendingAlphabeticalOrderByPresentationName()
 {
     CommonSteps.AssertListOfStringsIsInAscendingOrder(Test.Pages.AdditionalServices.ServiceRecipientNames());
 }
Example #6
0
 public void ThenTheyAreDisplayedInAlphabeticalOrder()
 {
     CommonSteps.AssertListOfStringsIsInAscendingOrder(Test.Pages.OrderForm.GetRadioButtonText());
 }
        public async Task GivenMultipleOne_OffOrderItemsHaveBeenAddedToTheOrderAsync()
        {
            var commonSteps = new CommonSteps(Test, Context);

            await commonSteps.GivenAnAssociatedServiceWithAFlatPriceVariableDeclarativeOrderTypeIsSavedToTheOrder();
        }
        public async Task GivenMultipleOrderItemsWithDifferentServiceRecipientHaveBeenAddedToTheOrderAsync()
        {
            var commonSteps = new CommonSteps(Test, Context);

            await commonSteps.GivenACatalogueSolutionWithAFlatPriceVariableDeclarativeOrderTypeIsSavedToTheOrder(5);
        }
 public void ThenTheOrderItemsRecurringCostTableIsSecondSortedByItemName()
 {
     CommonSteps.AssertListOfStringsIsInAscendingOrder(Test.Pages.PreviewOrderSummary.GetItemNames());
 }