Beispiel #1
0
        public void LoadCash_RegistrationWorks()
        {
            // Act

            // Act
            _loadCashViewPage.EnterAmount(100);

            // Assert For LoadCashPage
            Assert.IsTrue(_loadCashViewPage.IsNextButtonVisible());

            _loadCashViewPage.ClickNextButton();
            PhoneNumberViewPage phoneNumberViewPage = new PhoneNumberViewPage(app);

            phoneNumberViewPage.EnterPhoneNumberInTextBox(TestPhoneNumber);

            // Assert for PhoneNumberPage
            Assert.IsTrue(phoneNumberViewPage.IsNextButtonVisible());

            phoneNumberViewPage.ClickNextButton();
            AddWristBandPage addWristbandPage = new AddWristBandPage(app);

            addWristbandPage.ClickOnSimulateNFC_RegistrationAndCloseOverlay();

            // Assert for AddWristbandPage.
            Assert.IsTrue(addWristbandPage.IsFinishButtonVisible());

            addWristbandPage.ClickFinishButton();
            RegistrationCompletedPage registrationCompletedPage = new RegistrationCompletedPage(app);

            registrationCompletedPage.ClickNextAttendeeButton();
            var result = app.WaitForElement(x => x.Marked("btn_swipe_card.png"), "Timeout for waiting SelectWorkflowPage", DefaultTimeoutForUiElementToRenderInSeconds);

            // Assert
            Assert.IsNotEmpty(result);
        }
        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());
        }