コード例 #1
0
        public void GivenITapOnTheAddAcquaintanceButton()
        {
            var acquaintancesPage = new AcquaintancePage();

            acquaintancesPage.WaitUntilPageLoads();
            acquaintancesPage.TapOnAddAcquaintanceButton();
        }
コード例 #2
0
        public void IShouldSeeThatTheAcquaintanceWasDeleted()
        {
            var    acquaintancePage          = new AcquaintancePage();
            string formattedAcquaintanceName = $"{ScenarioState.LastName}, {ScenarioState.FirstName}";

            acquaintancePage.WaitUntilListIsNotEmpty();
            acquaintancePage.IsAcquaintanceWithNameDisplayed(formattedAcquaintanceName).Should().BeFalse();
        }
コード例 #3
0
        public void ITapOnTheNewAcquaintance()
        {
            var    acquaintancePage          = new AcquaintancePage();
            string formattedAcquaintanceName = $"{ScenarioState.LastName}, {ScenarioState.FirstName}";

            acquaintancePage.WaitUntilListIsNotEmpty();
            acquaintancePage.TapOnAcquaintance(formattedAcquaintanceName);
        }
コード例 #4
0
        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();
        }