示例#1
0
        public void DeleteOpportunity(string opportunityTopic)
        {
            //Arrange

            //Act
            OpportunitiesPage.DeleteViewCell(opportunityTopic);

            //Assert
            Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(opportunityTopic));

            //Act
            OpportunitiesPage.TriggerPullToRefresh();

            //Assert
            Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(opportunityTopic));
        }
示例#2
0
        public void DeleteOpportunity()
        {
            //Arrange
            const string opportunityTopic = "715005 / Investment Data Corp";

            //Act
            OpportunitiesPage.DeleteViewCell(opportunityTopic);

            //Assert
            Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(opportunityTopic));

            //Act
            OpportunitiesPage.TriggerPullToRefresh();

            //Assert
            Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(opportunityTopic));
        }
示例#3
0
        public async Task AddNewOpportunity(bool shouldUseKeyboardReturnButton, string topicText, string companyText, int leaseAmount, string ownerText, string dbaText)
        {
            //Arrange

            //Act
            OpportunitiesPage.TapAddOpportunityButton();

            AddOpportunityPage.PopulateAllFields(topicText, companyText, leaseAmount, ownerText, dbaText, shouldUseKeyboardReturnButton);

            if (!shouldUseKeyboardReturnButton)
            {
                AddOpportunityPage.TapSaveButton();
            }

            OpportunitiesPage.TriggerPullToRefresh();
            await OpportunitiesPage.WaitForNoPullToRefreshIndicator().ConfigureAwait(false);

            OpportunitiesPage.TapOpportunityViewCell(topicText);

            OpportunityDetailPage.WaitForPageToAppear();

            //Assert
            Assert.AreEqual(PageTitleConstants.OpportunityDetailPage, OpportunityDetailPage.Title);
        }