Beispiel #1
0
        public void FacebookLogonViaNotificationsMenu()
        {
            App = new UnitTestApp();
            var authenticationSteps = new AuthenticationSteps(ScenarioContext.Current);

            authenticationSteps.GivenIAmNotAuthenticated();

            var navigationSteps = new NavigationSteps(ScenarioContext.Current);

            navigationSteps.ThenIAmRedirectedToThePage("WikiPage");

            var homePageSteps = new HomePageSteps(ScenarioContext.Current);

            homePageSteps.GivenTheMenuDetailIsClosed();
            homePageSteps.WhenITapTheHanburgerIcon();
            homePageSteps.ThenIShouldSeeTheMenuDetailIsOpened();

            var notificationsPageSteps = new NotificationsPageSteps(ScenarioContext.Current);

            notificationsPageSteps.WhenITapTheNotificationsFromTheMenuDetail();
            navigationSteps.ThenIAmRedirectedToThePage("LogonPage");

            var loginSteps = new LogonPageSteps(ScenarioContext.Current);

            loginSteps.WhenITapTheLoginWithFacebookButtonWithMobileAccount(LOGONUSERMOBILE);
        }
Beispiel #2
0
 public void BeforeScenario()
 {
     AuthenticatedAlreadyOrNot(false);
     AppInitsHolder.IsWelcomeInstructionsLoaded = true;
     Xamarin.Forms.Mocks.MockForms.Init();
     App = new UnitTestApp();
 }
Beispiel #3
0
 public void OnResumeLogon()
 {
     AuthenticatedAlreadyOrNot(true);
     UserAndPasswordSavedAlreadyOrNot(true);
     App = new UnitTestApp();
     App.OnResumePublic().Wait();
 }
Beispiel #4
0
 public void OnResumeLogonAndPushedDateNotExpired()
 {
     AuthenticatedAlreadyOrNot(true);
     UserAndPasswordSavedAlreadyOrNot(true);
     AppInitsHolder.NotificationsPushedDateSaved = DateTime.Now;
     App = new UnitTestApp();
     App.OnResumePublic().Wait();
 }
Beispiel #5
0
 public void FirstTimeLaunch()
 {
     //chito.manually set the welcome instruction to be not loaded yet
     AppInitsHolder.IsWelcomeInstructionsLoaded = false;
     App = new UnitTestApp();
 }