Exemplo n.º 1
0
        public void LocalizationTest()
        {
            OriginalPage originalPage = new OriginalPage(driver);
            bool         isSwitched   = originalPage.SwitchLanguage().IsLangSwitched();

            Assert.That(isSwitched, Is.EqualTo(true), $"Language switch {(isSwitched ? "successfully" : "unsuccessfully")}");

            isSwitched = originalPage.SwitchLanguage().IsLangSwitched();
            Assert.That(isSwitched, Is.EqualTo(true),
                        $"Language switch {(isSwitched ? "successfully" : "unsuccessfully")}");
        }
Exemplo n.º 2
0
        public void FilterFunctionalTest()
        {
            OriginalPage originalPage = new OriginalPage(driver);

            originalPage.SwitchLanguage();
            AccessoriesPage accessoriesPage =
                originalPage.OpenAccessoriesPage()
                .PointHomeAccesorries()
                .PointStationery();
            bool isFilterWork = accessoriesPage.IsFilterOn();

            Assert.That(isFilterWork, Is.EqualTo(true),
                        $"Filter is turned on {(isFilterWork ? "successfully" : "unsuccessfully")}");
        }
 // Performs the logic from the Page.DoNext() method in the base Page class instead of calling the override
 // in Page_ConfigureStartingPawns.  We want to prevent the missing required work type dialog from appearing
 // in the context of the configure pawns page.  We're adding our own version here.
 public void DoNextInBasePage()
 {
     if (OriginalPage != null)
     {
         Page   next       = OriginalPage.next;
         Action nextAction = OriginalPage.nextAct;
         if (next != null)
         {
             Verse.Find.WindowStack.Add(next);
         }
         if (nextAction != null)
         {
             nextAction();
         }
         TutorSystem.Notify_Event("PageClosed");
         TutorSystem.Notify_Event("GoToNextPage");
         OriginalPage.Close(true);
     }
 }
Exemplo n.º 4
0
        public void SignUpTest(bool isPositive, SocialTitle socialTitle, string firstName,
                               string lastName, string email, string password, string birthDay,
                               bool taggedOffers, bool taggedNewsLetter, bool taggedAgree)
        {
            OriginalPage originalPage     = new OriginalPage(driver);
            LogInPage    logInPage        = originalPage.OpenLogInPage();
            SignUpPage   signUpPage       = logInPage.ClickOnMakeAccount();
            bool         isAccountCreated = signUpPage.InputSocialTitle(socialTitle)
                                            .InputFirstName(firstName)
                                            .InputLastName(lastName)
                                            .InputEmail(email)
                                            .InputPassword(password)
                                            .InputBirthDay(birthDay)
                                            .TagOffers(taggedOffers)
                                            .TagNewsLetter(taggedNewsLetter)
                                            .TagAgree(taggedAgree)
                                            .ClickSaveButton()
                                            .IsAccountCreated();

            System.Threading.Thread.Sleep(1000);
            Assert.That(isAccountCreated, Is.EqualTo(isPositive),
                        $"Account is created {(isAccountCreated ? "successfully" : "unsuccessfully")}");
        }