Beispiel #1
0
 public void Test_Login_as_existed_Ms_user()
 {
     AuthorizationHelper.AuthenticateAsMicrosoftUser();
     Assert.IsTrue(AuthorizationHelper.IsExistedUserAuthenticated(), "User is not authenticated");
     AuthorizationHelper.Logout();
     Assert.IsTrue(AuthorizationHelper.IsUserLogout(), "User is not logout");
     Assert.IsFalse(AuthorizationHelper.IsUserCookieExist(), "Cookies are not deleted");
 }
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     if (AuthorizationHelper.IsUserNamePresented())
     {
         AuthorizationHelper.OpenLoginPage();
         AuthorizationHelper.AuthenticateAsMicrosoftUser();
     }
 }
Beispiel #3
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 #4
0
 public void Test_Login_as_Ms_user()
 {
     HomePageHelper.OpenLoginPage();
     AuthorizationHelper.AuthenticateAsMicrosoftUser();
     Assert.IsTrue(AuthorizationHelper.IsUserAuthenticated());
 }