public void CancelAddNewOpportunity(string topicText, string companyText, int leaseAmount, string ownerText, string dbaText) { //Arrange //Act OpportunitiesPage.TapAddOpportunityButton(); AddOpportunityPage.PopulateAllFields(topicText, companyText, leaseAmount, ownerText, dbaText, false); AddOpportunityPage.TapCancelButton(); //Assert Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(topicText)); }
public void CancelAddNewOpportunity() { //Arrange const string topicText = "Test Topic"; 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, false); AddOpportunityPage.TapCancelButton(); //Assert Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(topicText)); }