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)); }
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)); }
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); }