예제 #1
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
     SearchHelper.InitSearchWindow();
 }
예제 #2
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
     AuthorizationHelper.OpenLoginPage();
 }
예제 #3
0
 public void TestCleanup()
 {
     CreateScreenshotsIfTestFail(TestContext);
     if (TestContext.CurrentTestOutcome != UnitTestOutcome.Passed && TestContext.CurrentTestOutcome != UnitTestOutcome.Inconclusive)
     {
         HomePageHelper.OpenPage();
     }
 }
예제 #4
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     AuthorizationHelper.OpenLoginPage();
     AuthorizationHelper.AuthenticateAsExistedGoogleUser();
     HomePageHelper.DeleteAllElementsLocally();
 }
예제 #5
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     if (AuthorizationHelper.IsUserNamePresented())
     {
         AuthorizationHelper.OpenLoginPage();
         AuthorizationHelper.AuthenticateAsMicrosoftUser();
     }
 }
예제 #6
0
        public void AddTimelinesToFavorites()
        {
            HomePageHelper.OpenPage();
            AuthorizationHelper.OpenLoginPage();
            AuthorizationHelper.AuthenticateAsExistedGoogleUser();
            Collection <Timeline> timelines = ApiHelper.GetCurrentUserTimelines();

            NavigationHelper.OpenHomePage();
            ApiHelper.SetUserTimelinesAsNotFavorite(timelines);
            Guid[] selectedAsFavoriteTimelineGuids  = ApiHelper.SelectAllTimelinesAsFavorites(timelines);
            Guid[] currentUserFavoriteTimelineGuids = ApiHelper.GetFavoriteTimelines();
            Assert.IsTrue(selectedAsFavoriteTimelineGuids.OrderBy(a => a).SequenceEqual(currentUserFavoriteTimelineGuids.OrderBy(a => a)));
        }
예제 #7
0
        public void TestInitialize()
        {
            BrowserStateManager.RefreshState();
            HomePageHelper.OpenPage();
            AuthorizationHelper.OpenLoginPage();
            AuthorizationHelper.AuthenticateAsMicrosoftUser(); //authenticate as existing cz user
            HomePageHelper.DeleteAllElementsLocally();
            var exhibit = new Exhibit {
                Title = "WebdriverExhibitWithContent"
            };

            ExhibitHelper.AddExhibitWithoutFormClosing(exhibit);
            ExhibitHelper.ClickByAddArtifact();
        }
예제 #8
0
 public static void ClassInitialize(TestContext testContext)
 {
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
 }
예제 #9
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     WelcomeScreenHelper.ResetPopupState();
     HomePageHelper.OpenPage();
 }
예제 #10
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
 }
예제 #11
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     AuthorizationHelper.OpenLoginPage();
 }
예제 #12
0
 public static void ClassInitialize(TestContext testContext)
 {
     HomePageHelper.OpenPage();
 }
예제 #13
0
 public static void ClassInitialize(TestContext testContext)
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     _homePageTitle = HomePageHelper.GetTitle();
 }
예제 #14
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     SearchHelper.InitSearchWindow();
 }