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