Exemplo n.º 1
0
        public void Init()
        {
            // Arrange
            SelectWorkFlowPage selectWorkFlowPage = NavigateToSelectWorkflowScreen(TestUsername, TestPin, 3);

            selectWorkFlowPage.ClickLoadCash();
            SelectPricingPackagePage selectPricingPackage = new SelectPricingPackagePage(app);

            selectPricingPackage.SelectPricingPackage(0);
            _loadCashViewPage = new LoadCashViewPage(app);
        }
        public void AddCashToExistingAttendee_MoveBackFromLoadCashWithoutAddingCash()
        {
            // Arrange

            // Act
            _attendeeDetailPage.ClickAddCashButton();
            LoadCashViewPage loadCashPage = new LoadCashViewPage(app);

            loadCashPage.ClickBackButton();

            // Assert
            Assert.AreEqual(string.Empty, _attendeeDetailPage.GetPendingAmountMessage());
        }
        public void AddCashToExistingAttendee_Works()
        {
            // Arrange

            // Act
            _attendeeDetailPage.ClickAddCashButton();
            LoadCashViewPage loadCashPage = new LoadCashViewPage(app);

            loadCashPage.EnterAmount(10);
            loadCashPage.ClickFinishButton();

            // Assert
            Assert.AreEqual("+ $10 pending", _attendeeDetailPage.GetPendingAmountMessage());
        }