Exemplo n.º 1
0
        public void CancelAddNewContact()
        {
            //Arrange

            //Act
            PersonListPage.TapAddButton();

            AddPersonPage.EnterName(TestConstants.TestContactName);
            AddPersonPage.EnterAge(TestConstants.TestContactAge);
            AddPersonPage.TapCancelButton();

            PersonListPage.WaitForPageToLoad();

            //Assert
            Assert.IsFalse(PersonListPage.DoesContactExist(TestConstants.TestContactName));
        }
Exemplo n.º 2
0
        public async Task AddNewContact()
        {
            //Arrange

            //Act
            PersonListPage.TapAddButton();

            AddPersonPage.EnterName(TestConstants.TestContactName);
            AddPersonPage.EnterAge(TestConstants.TestContactAge);
            AddPersonPage.TapSaveButton();

            await PersonListPage.WaitForPageToLoad().ConfigureAwait(false);

            //Assert
            Assert.IsTrue(PersonListPage.DoesContactExist(TestConstants.TestContactName));
        }