public async void DeleteOpportunity(string opportunityTopic) { //Arrange //Act OpportunitiesPage.DeleteViewCell(opportunityTopic); await Task.Delay(1000); //Assert Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(opportunityTopic)); }
public async Task DeleteOpportunity() { //Arrange const string opportunityTopic = "715003 / Investment Data Corp"; //Act OpportunitiesPage.DeleteViewCell(opportunityTopic); await Task.Delay(1000); //Assert Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(opportunityTopic)); }
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 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 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)); }