public void AddNewOpportunity(bool shouldUseKeyboardReturnButton) { //Arrange const string topicText = "714999 / Investment Data Corp"; const string companyText = "Test Company"; const int leaseAmount = 123456789; const string ownerText = "Test Owner"; const string dbaText = "Test DBA"; //Act OpportunitiesPage.TapAddOpportunityButton(); AddOpportunityPage.PopulateAllFields(topicText, companyText, leaseAmount, ownerText, dbaText, shouldUseKeyboardReturnButton); if (!shouldUseKeyboardReturnButton) { AddOpportunityPage.TapSaveButton(); } OpportunitiesPage.TapOpportunityViewCell(topicText); OpportunityDetailPage.WaitForPageToAppear(); //Assert Assert.AreEqual(PageTitleConstants.OpportunityDetailPage, OpportunityDetailPage.Title); }
public void ViewOpportunity(string opportunityTopic) { //Arrange var title = "Terms Page"; //Act OpportunitiesPage.TapOpportunityViewCell(opportunityTopic); TermsPage.WaitForTermsPageToAppear(); //Assert Assert.IsTrue(TermsPage.GetTitle().Equals(title)); }
public void ViewOpportunity() { //Arrange const string searchString = "05"; const string opportunityTopic = "715005 / Investment Data Corp"; //Act OpportunitiesPage.Search(searchString); OpportunitiesPage.TapOpportunityViewCell(opportunityTopic); OpportunityDetailPage.WaitForPageToAppear(); //Assert Assert.AreEqual(PageTitleConstants.OpportunityDetailPage, OpportunityDetailPage.Title); }
public void AddNewOpportunity() { //Arrange var topicText = "Test Topic"; var companyText = "Test Company"; var leaseAmount = 123456789; var ownerText = "Test Owner"; var dbaText = "Test DBA"; //Act OpportunitiesPage.TapAddOpportunityButton(); AddOpportunityPage.PopulateAllFields(topicText, companyText, leaseAmount, ownerText, dbaText); AddOpportunityPage.TapSaveButton(); OpportunitiesPage.TapOpportunityViewCell(topicText); TermsPage.WaitForTermsPageToAppear(); //Assert Assert.IsTrue(TermsPage.GetTitle().Equals("Terms Page")); }
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); }