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

            //Act
            PersonListPage.TapAddButton();

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

            PersonListPage.WaitForPageToLoad();

            //Assert
            Assert.IsTrue(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));
        }