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)); }
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)); }