Пример #1
0
        public async void DeleteOpportunity(string opportunityTopic)
        {
            //Arrange

            //Act
            OpportunitiesPage.DeleteViewCell(opportunityTopic);
            await Task.Delay(1000);

            //Assert
            Assert.IsFalse(OpportunitiesPage.DoesViewCellExist(opportunityTopic));
        }
Пример #2
0
        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));
        }
Пример #3
0
        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));
        }
Пример #4
0
        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));
        }
Пример #5
0
        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));
        }
Пример #6
0
        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));
        }