public void GivenITapOnTheAddAcquaintanceButton() { var acquaintancesPage = new AcquaintancePage(); acquaintancesPage.WaitUntilPageLoads(); acquaintancesPage.TapOnAddAcquaintanceButton(); }
public void IShouldSeeThatTheAcquaintanceWasDeleted() { var acquaintancePage = new AcquaintancePage(); string formattedAcquaintanceName = $"{ScenarioState.LastName}, {ScenarioState.FirstName}"; acquaintancePage.WaitUntilListIsNotEmpty(); acquaintancePage.IsAcquaintanceWithNameDisplayed(formattedAcquaintanceName).Should().BeFalse(); }
public void ITapOnTheNewAcquaintance() { var acquaintancePage = new AcquaintancePage(); string formattedAcquaintanceName = $"{ScenarioState.LastName}, {ScenarioState.FirstName}"; acquaintancePage.WaitUntilListIsNotEmpty(); acquaintancePage.TapOnAcquaintance(formattedAcquaintanceName); }
public void ThenIShouldSeeTheNewAcquaintanceInTheList() { var acquaintancePage = new AcquaintancePage(); string formattedAcquaintanceName = $"{ScenarioState.LastName}, {ScenarioState.FirstName}"; acquaintancePage.WaitUntilPageLoads(); acquaintancePage.IsAcquaintanceWithNameDisplayed(formattedAcquaintanceName).Should().BeTrue(); }
public void IShouldSeeThatTheFirstNameAndLastNameChanged() { var acquaintanceDetailsPage = new AcquaintanceDetailsPage(); var acquaintancePage = new AcquaintancePage(); string formattedAcquaintanceName = $"{ScenarioState.LastName}, {ScenarioState.FirstName}"; Helper.WaitFor(() => acquaintanceDetailsPage.GetToolbarTitle() == formattedAcquaintanceName); acquaintanceDetailsPage.NavigateBackToAcquaintanceList(); acquaintancePage.WaitUntilListIsNotEmpty(); acquaintancePage.IsAcquaintanceWithNameDisplayed(formattedAcquaintanceName).Should().BeTrue(); }