Beispiel #1
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
     SearchHelper.InitSearchWindow();
 }
Beispiel #2
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
     AuthorizationHelper.OpenLoginPage();
 }
Beispiel #3
0
 public void TestCleanup()
 {
     CreateScreenshotsIfTestFail(TestContext);
     if (TestContext.CurrentTestOutcome != UnitTestOutcome.Passed && TestContext.CurrentTestOutcome != UnitTestOutcome.Inconclusive)
     {
         HomePageHelper.OpenPage();
     }
 }
Beispiel #4
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     AuthorizationHelper.OpenLoginPage();
     AuthorizationHelper.AuthenticateAsExistedGoogleUser();
     HomePageHelper.DeleteAllElementsLocally();
 }
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     if (AuthorizationHelper.IsUserNamePresented())
     {
         AuthorizationHelper.OpenLoginPage();
         AuthorizationHelper.AuthenticateAsMicrosoftUser();
     }
 }
Beispiel #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)));
        }
Beispiel #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();
        }
Beispiel #8
0
 public static void ClassInitialize(TestContext testContext)
 {
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
 }
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     WelcomeScreenHelper.ResetPopupState();
     HomePageHelper.OpenPage();
 }
Beispiel #10
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
 }
Beispiel #11
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     AuthorizationHelper.OpenLoginPage();
 }
Beispiel #12
0
 public static void ClassInitialize(TestContext testContext)
 {
     HomePageHelper.OpenPage();
 }
Beispiel #13
0
 public static void ClassInitialize(TestContext testContext)
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     _homePageTitle = HomePageHelper.GetTitle();
 }
Beispiel #14
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     SearchHelper.InitSearchWindow();
 }